From 1d7618ea4df39231ddc1d2487b0056809a052c36 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Tue, 3 Oct 2023 23:59:48 -0700 Subject: nvim: update config --- modules/neovim.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/neovim.nix (limited to 'modules/neovim.nix') 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 @@ +{ 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 + ]; + }; +} -- cgit v1.2.3