nix-dotfiles/hosts/common/programs/neovim.nix
h7x4 dbea006c50
hosts/common: split into multiple files
also add smartd, systemd-lock-handler and usbtop
2024-08-12 17:36:13 +02:00

32 lines
546 B
Nix

{ pkgs, ... }:
{
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
configure = {
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
direnv-vim
vim-nix
vim-polyglot
];
opt = [
vim-monokai
];
};
customRC = ''
set number relativenumber
set undofile
set undodir=~/.cache/vim/undodir
packadd! vim-monokai
colorscheme monokai
'';
};
};
}