From a4ee57713d0db811cc29301465c375349faf1d10 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 19 Dec 2023 19:44:20 -0800 Subject: [PATCH] Revert "added go support; trimmed unused plugins" This reverts commit 44b6333bd901ded525fc16b1129426d496dbec91. --- modules/neovim.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/modules/neovim.nix b/modules/neovim.nix index 1f9dbe0..329323d 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -137,6 +137,7 @@ in key = "d"; action = "\"_d"; } + { # leader+p delete the selection to the void, then paste mode = "x"; @@ -147,16 +148,10 @@ in plugins = { - lsp.enable = true; - - lsp.servers = { - gopls.enable = true; - }; - nvim-tree = { enable = true; openOnSetup = true; - }; + }; nvim-autopairs = { enable = true; @@ -171,10 +166,15 @@ in "rust" "toml" "lua" - "go" ]; }; rainbow-delimiters.enable = true; + treesitter-refactor = { + enable = true; + #highlightCurrentScope.enable = true; + navigation.enable = true; + smartRename.enable = true; + }; comment-nvim = { enable = true; @@ -200,11 +200,9 @@ in # Read settings here: https://github.com/mfussenegger/nvim-dap#Usage # See :help dap.txt, :help dap-mapping and :help dap-api. cmp-dap.enable = true; - # method signature with current arguement hints) + cmp-buffer.enable = true; cmp-nvim-lsp-signature-help.enable = true; - # lua source autocomplete cmp-nvim-lua.enable = true; - # filesystem paths cmp-path.enable = true; presence-nvim.enable = true;