This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/default.nix
2022-09-16 10:10:38 +03:00

29 lines
674 B
Nix

{ callPackage, wrapNeovim, neovim-unwrapped, vimPlugins, ... }:
let
lib = import ./lib.nix;
callPlugins = list: builtins.map (p: callPackage p { }) list;
plugins = callPlugins [
./plugins/syntax
./plugins/explorer
./plugins/theme
./plugins/lsp
];
basicConfigs = [builtins.readFile ./config/basic.lua];
pluginConfigs = lib.extractAttrs "luaConfig" plugins;
allConfigs = basicConfigs ++ pluginConfigs;
in
wrapNeovim neovim-unwrapped {
withPython3 = false;
withNodeJs = false;
withRuby = false;
configure = {
customRC = lib.mkLuaRc allConfigs;
packages.myVimPackages = { start = lib.extractAttrs "plugins" plugins; };
};
}