From 34b73e34e2d6a280264421663c7bce326c68f897 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 23 Sep 2018 12:27:40 +0200 Subject: Restructure host config, derivations --- host/software/pkgs/vim/custom.nix | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 host/software/pkgs/vim/custom.nix (limited to 'host/software/pkgs/vim/custom.nix') diff --git a/host/software/pkgs/vim/custom.nix b/host/software/pkgs/vim/custom.nix new file mode 100644 index 0000000..4719b72 --- /dev/null +++ b/host/software/pkgs/vim/custom.nix @@ -0,0 +1,42 @@ +{ pkgs }: + +let + vimrc = builtins.readFile ./asset/rc.vim; + plugins = pkgs.callPackage ./plugins.nix {}; +in +{ + vam = { + knownPlugins = pkgs.vimPlugins // plugins; + pluginDictionaries = [ + { names = [ + # UI enhancements + "vim-airline" + "goyo" + "vim-toggle-ui-elements" + # 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-wordmotion" + "vim-autoformat" + "surround" + "vim-unimpaired" + "vim-far" + # git integration + "fugitive" + "vim-gitgutter" + "vim-gina" + ];} + ]; + }; + customRC = vimrc; +} -- cgit v1.2.3