about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 14:23:29 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-10-05 14:23:29 +0200
commit10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3 (patch)
tree8e9603334d8193f7a967a8228ac59c4db62c3653 /pkgs
parent9f74c1721692f8b0c24a0915038ecaa05e38e121 (diff)
downloadpnpkgs-10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3.tar.gz
pnpkgs-10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3.zip
Add larbs-nvim
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/larbs-nvim/default.nix33
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;
+ }