nixos-config/2configs/editor/vim.nix

21 lines
481 B
Nix
Raw Normal View History

2015-08-07 15:50:06 +02:00
{ config, pkgs, ... }:
{
2015-08-07 15:50:06 +02:00
environment.systemPackages = [
2022-06-07 20:32:57 +02:00
((pkgs.vim_configurable).customize {
2015-08-07 15:50:06 +02:00
name = "vim";
2018-08-30 16:39:23 +02:00
vimrcConfig.customRC = builtins.readFile ./vimrc;
2022-06-06 21:21:00 +02:00
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; { start = [
"undotree"
2020-04-23 16:44:10 +02:00
"YouCompleteMe"
#"UltiSnips"
2017-09-29 21:33:50 +02:00
# vim-nix handles indentation better but does not perform sanity
2022-06-06 21:21:00 +02:00
"vim-addon-nix"
"vim-better-whitespace"
2015-08-07 15:50:06 +02:00
];
2022-06-06 21:21:00 +02:00
};
2015-08-07 15:50:06 +02:00
})
];
}