From f98e9671e330f774f20d2b464425e12408272362 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 28 Apr 2024 22:40:26 +0200 Subject: [PATCH] Nvim: webdev icons + trouble --- modules/hm/vim.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/hm/vim.nix b/modules/hm/vim.nix index f722671..4076703 100644 --- a/modules/hm/vim.nix +++ b/modules/hm/vim.nix @@ -129,6 +129,8 @@ let vp = pkgs.vimPlugins; in { config = "colorscheme nightfox"; } + vp.nvim-web-devicons + # Set lualine as statusline { plugin = vp.lualine-nvim; @@ -295,6 +297,18 @@ let vp = pkgs.vimPlugins; in { } vp.nvim-treesitter-context + + { + plugin = vp.trouble-nvim; + type = "lua"; + config = '' + vim.keymap.set("n", "xx", function() require("trouble").toggle() end) + vim.keymap.set("n", "xw", function() require("trouble").toggle("workspace_diagnostics") end) + vim.keymap.set("n", "xd", function() require("trouble").toggle("document_diagnostics") end) + vim.keymap.set("n", "xq", function() require("trouble").toggle("quickfix") end) + vim.keymap.set("n", "xl", function() require("trouble").toggle("loclist") end) + ''; + } ]; # settings = { ignorecase = true; }; # coc.enable = true;