Litenet-Nix-Infra/modules/packages/vim.nix
2024-07-20 10:15:19 +02:00

30 lines
566 B
Nix
Executable file

{ pkgs, ... }:
{
environment.variables = {
EDITOR = "vim";
};
environment.systemPackages = with pkgs; [
(neovim.override {
vimAlias = true;
configure = {
packages.myPlugins = with pkgs.vimPlugins; {
start = [
vim-lastplace
vim-nix
vim-airline
];
opt = [ ];
};
customRC = ''
" your custom vimrc
set nocompatible
set backspace=indent,eol,start
colorscheme vim
" ...
'';
};
})
];
}