diff options
author | Shubham Saini <me@ubh.sh> | 2023-10-04 06:59:48 +0000 |
---|---|---|
committer | Shubham Saini <me@ubh.sh> | 2023-10-04 06:59:48 +0000 |
commit | 1d7618ea4df39231ddc1d2487b0056809a052c36 (patch) | |
tree | 9289ce1c2012645132517cb1c0c4060628e550d4 /modules/neovim.nix | |
parent | 800b5b57725875e633d81e1bc8e753179ae79b72 (diff) |
nvim: update config
Diffstat (limited to 'modules/neovim.nix')
-rw-r--r-- | modules/neovim.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/neovim.nix b/modules/neovim.nix new file mode 100644 index 0000000..1897223 --- /dev/null +++ b/modules/neovim.nix | |||
@@ -0,0 +1,34 @@ | |||
1 | { config, pkgs, ... }: | ||
2 | |||
3 | { | ||
4 | programs.neovim = { | ||
5 | enable = true; | ||
6 | defaultEditor = true; | ||
7 | viAlias = true; | ||
8 | vimAlias = true; | ||
9 | vimdiffAlias = true; | ||
10 | extraConfig = builtins.readFile ./init.vim; | ||
11 | plugins = with pkgs.vimPlugins; [ | ||
12 | # lsp | ||
13 | nvim-lspconfig | ||
14 | nvim-cmp | ||
15 | (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) | ||
16 | # autocompletion | ||
17 | cmp-nvim-lsp | ||
18 | cmp-buffer | ||
19 | cmp-path | ||
20 | cmp-cmdline | ||
21 | # tpope | ||
22 | vim-surround | ||
23 | vim-fugitive | ||
24 | # syntax | ||
25 | vim-nix | ||
26 | vimtex | ||
27 | # others | ||
28 | vim-gitgutter | ||
29 | tabular | ||
30 | vimwiki | ||
31 | fzf-vim | ||
32 | ]; | ||
33 | }; | ||
34 | } | ||