about summary refs log tree commit diff
path: root/pkgs/larbs-nvim/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/larbs-nvim/default.nix')
-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;
+ }