nixos-config/common/programs/neovim.nix

41 lines
719 B
Nix
Raw Normal View History

2024-04-08 21:28:07 +02:00
{pkgs, ...}: {
# NeoVIm config
2024-04-22 20:48:35 +02:00
# Imported by default by ../base.nix
2024-04-08 21:28:07 +02:00
programs.neovim = {
enable = true;
defaultEditor = true;
configure = {
customRC = ''
set number
set list
if &diff
colorscheme blue
endif
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
ctrlp
nvim-tree-lua
indent-blankline-nvim
nvim-lspconfig
nvim-treesitter.withAllGrammars
plenary-nvim
gruvbox-material
mini-nvim
];
};
extraLuaConfig =
/*
lua
*/
''
require("nvim-tree").setup()
'';
};
};
}