nixos-config/2configs/editor/vim.nix
2022-06-07 20:32:57 +02:00

21 lines
481 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = [
((pkgs.vim_configurable).customize {
name = "vim";
vimrcConfig.customRC = builtins.readFile ./vimrc;
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; { start = [
"undotree"
"YouCompleteMe"
#"UltiSnips"
# vim-nix handles indentation better but does not perform sanity
"vim-addon-nix"
"vim-better-whitespace"
];
};
})
];
}