nixos-config/2configs/editor/vim.nix
2023-06-03 15:32:47 +02:00

22 lines
501 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-nix"
"vim-addon-nix"
"vim-better-whitespace"
];
};
})
];
}