{ 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 ]; }; }