From a9ceae32286b080797e92fe4725ea1280fbc85d9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 3 Mar 2019 20:28:46 +0100 Subject: Restructure vim configuration * Use integrated plugin manager * Switch to nvim instead of continuing to maintain a config for both vims --- pkgs/custom-neovim/default.nix | 51 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) (limited to 'pkgs/custom-neovim/default.nix') diff --git a/pkgs/custom-neovim/default.nix b/pkgs/custom-neovim/default.nix index 34e2fcd..8568c08 100644 --- a/pkgs/custom-neovim/default.nix +++ b/pkgs/custom-neovim/default.nix @@ -1,6 +1,51 @@ { pkgs, ... }: -pkgs.neovim.override { - vimAlias = false; - configure = import ../custom-vim/custom.nix { pkgs = pkgs; }; +let + plugins = pkgs.callPackage ./plugins.nix {}; + +in pkgs.neovim.override { + vimAlias = true; + configure = { + customRC = builtins.readFile ./asset/rc.vim; + + packages.myVimPackage = with pkgs.vimPlugins // plugins; { + start = [ + # UI enhancements + airline + goyo + + # autocomplete + LanguageClient-neovim + deoplete-nvim + + # load project specific config + vim-localvimrc + + # colors, syntax highlighting + vim-color-akr + vim-polyglot + vim-addon-nix + + # file, buffer management + ctrlp + vim-counterpoint + vim-signature + + # undo history tree + vim-mundo + + # editing enhancements + vim-unimpaired + vim-wordmotion + vim-autoformat + vim-sandwich + far + + # git integration + vim-gitgutter + gina + + ]; + }; + }; } -- cgit v1.2.3