nixos-config/common/programs/neovim.nix

41 lines
722 B
Nix
Raw Normal View History

2024-04-08 21:28:07 +02:00
{pkgs, ...}: {
# NeoVIm config
# Imported by default by ../default.nix
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()
'';
};
};
}