You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
634 B
Nix
29 lines
634 B
Nix
{pkgs, ... }:
|
|
|
|
let
|
|
myVim = pkgs.vim_configurable.customize {
|
|
# Specifies the vim binary name.
|
|
# E.g. set this to "my-vim" and you need to type "my-vim" to open this vim
|
|
# This allows to have multiple vim packages installed (e.g. with a different set of plugins)
|
|
name = "vim";
|
|
vimrcConfig.customRC = builtins.readFile ./vimrc;
|
|
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
|
|
start = [
|
|
wombat256-vim
|
|
ale
|
|
];
|
|
opt = [
|
|
elm-vim
|
|
vim-fish
|
|
vimwiki
|
|
];
|
|
};
|
|
};
|
|
|
|
in {
|
|
programs.vim = {
|
|
defaultEditor = true;
|
|
package = myVim;
|
|
};
|
|
}
|