From 7ffee1baa64e442d9c944b436c2e062b129ceb57 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 14 Jan 2024 09:02:49 +0100 Subject: [PATCH] Vim: LSP fidget and gitgutter --- modules/hm/vim.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/hm/vim.nix b/modules/hm/vim.nix index f0fe5a0..03b66df 100644 --- a/modules/hm/vim.nix +++ b/modules/hm/vim.nix @@ -11,6 +11,7 @@ let vp = pkgs.vimPlugins; in { # # Git related plugins # vp.fugitive # vp.rhubarb + vp.gitgutter # vp.lsp-zero-nvim # vp.nvim-cmp @@ -31,7 +32,7 @@ let vp = pkgs.vimPlugins; in { i = { [""] = actions.move_selection_previous, -- move to prev result [""] = actions.move_selection_next, -- move to next result - [""] = actions.send_selected_to_qflist + actions.open_qflist, + [""] = actions.send_selected_to_qflist + actions.open_qflist, } } } @@ -51,10 +52,10 @@ let vp = pkgs.vimPlugins; in { vp.dressing-nvim # Better UI for input and selection # Tree view + # vp.nerdtree-git-plugin + # vp.vim-devicons + # vp.nerdtree # vp.chadtree - vp.nerdtree-git-plugin - vp.vim-devicons - vp.nerdtree vp.cmp-buffer # source for text in buffer vp.cmp-path # source for file system path @@ -79,7 +80,14 @@ let vp = pkgs.vimPlugins; in { # } # # LSP - vp.fidget-nvim # fidget moving while LSP is working + # fidget moving while LSP is working + { + plugin = vp.fidget-nvim; + type = "lua"; + config = '' + require("fidget").setup({}) + ''; + } # vp.neodev-nvim # # vp.nvim-lspconfig vp.cmp-nvim-lsp