From 10d7556e33a3f82cddb672c02f1eb5e0bd11e1e3 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 5 Oct 2020 14:23:29 +0200 Subject: Add larbs-nvim --- pkgs/larbs-nvim/default.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/larbs-nvim/default.nix (limited to 'pkgs') 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; + } -- cgit 1.4.1