2015-08-07 15:50:06 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
customPlugins.vim-better-whitespace = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "vim-better-whitespace";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "ntpeters";
|
|
|
|
repo = "vim-better-whitespace";
|
|
|
|
rev = "984c8da518799a6bfb8214e1acdcfd10f5f1eed7";
|
|
|
|
sha256 = "10l01a8xaivz6n01x6hzfx7gd0igd0wcf9ril0sllqzbq7yx2bbk";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.python27Full # required for youcompleteme
|
|
|
|
(pkgs.vim_configurable.customize {
|
|
|
|
name = "vim";
|
|
|
|
|
2018-08-30 16:39:23 +02:00
|
|
|
vimrcConfig.customRC = builtins.readFile ./vimrc;
|
2015-08-07 15:50:06 +02:00
|
|
|
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins;
|
|
|
|
vimrcConfig.vam.pluginDictionaries = [
|
|
|
|
{ names = [ "undotree"
|
2019-09-25 14:07:28 +02:00
|
|
|
"YouCompleteMe" "UltiSnips"
|
2015-08-07 15:50:06 +02:00
|
|
|
"vim-better-whitespace" ]; }
|
2017-09-29 21:33:50 +02:00
|
|
|
# vim-nix handles indentation better but does not perform sanity
|
2015-08-07 15:50:06 +02:00
|
|
|
{ names = [ "vim-addon-nix" ]; ft_regex = "^nix\$"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|