blob: 1897223742ff9bb57e4628cdee07c2fceb877cda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ config, pkgs, ... }:
{
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
extraConfig = builtins.readFile ./init.vim;
plugins = with pkgs.vimPlugins; [
# lsp
nvim-lspconfig
nvim-cmp
(nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars))
# autocompletion
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
# tpope
vim-surround
vim-fugitive
# syntax
vim-nix
vimtex
# others
vim-gitgutter
tabular
vimwiki
fzf-vim
];
};
}
|