blob: 662ea7e8641ca0596c5a88b3f8780cb6efecca1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenv, callPackage, runCommand, vimPlugins, neovim }:
let
voidrice = callPackage ../voidrice.nix { };
initvim = runCommand "init.vim" { buildInputs = [ stdenv ]; }
''
sed '2,/plug#end()/d' "${voidrice}/.config/nvim/init.vim" > $out
'';
in
{ customRC ? "", packages ? []}:
neovim.override {
configure = {
customRC = builtins.readFile initvim + customRC;
packages.myVimPackage = with vimPlugins; {
# Missing packages:
# - lukesmithxyz/airline
# - kovetskiy/sxhkd-vim
start = [
vim-surround
nerdtree
goyo-vim
vimagit
vimwiki
vim-airline
vim-commentary
vim-css-color
vim-nix
]
++ packages;
};
};
vimAlias = true;
viAlias = true;
}
|