diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-05 14:23:29 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-10-05 14:23:29 +0200 |
commit | 10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3 (patch) | |
tree | 8e9603334d8193f7a967a8228ac59c4db62c3653 /pkgs | |
parent | 9f74c1721692f8b0c24a0915038ecaa05e38e121 (diff) | |
download | pnpkgs-10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3.tar.gz pnpkgs-10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3.zip |
Add larbs-nvim
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/larbs-nvim/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/larbs-nvim/default.nix b/pkgs/larbs-nvim/default.nix new file mode 100644 index 0000000..662ea7e --- /dev/null +++ b/pkgs/larbs-nvim/default.nix @@ -0,0 +1,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; + } |