janabhumi
841751ff30
- add basic.lua - plugin/explorer: add nvim-tree plugin - plugin/theme: add catppuccin-nvim plugin - plugin/syntax: add more grammars
28 lines
574 B
Nix
28 lines
574 B
Nix
{ callPackage, wrapNeovim, neovim-unwrapped, vimPlugins, ... }:
|
|
|
|
let
|
|
lib = import ./lib.nix;
|
|
|
|
callPlugins = list: builtins.map (p: callPackage p { }) list;
|
|
|
|
plugins = callPlugins [
|
|
./syntax
|
|
./explorer
|
|
./theme
|
|
];
|
|
|
|
basicConfig = builtins.readFile ./basic.lua;
|
|
|
|
in
|
|
wrapNeovim neovim-unwrapped {
|
|
withPython3 = false;
|
|
withNodeJs = false;
|
|
withRuby = false;
|
|
|
|
configure = {
|
|
customRC = lib.mkLuaRc ([ basicConfig ] ++ lib.extractAttrs "luaConfig" plugins);
|
|
|
|
packages.myVimPackages =
|
|
{ start = lib.extractAttrs "plugins" plugins; };
|
|
};
|
|
}
|