summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/trouble.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/trouble.lua')
-rw-r--r--.config/nvim/lua/plugins/trouble.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/trouble.lua b/.config/nvim/lua/plugins/trouble.lua
new file mode 100644
index 0000000..6d72bd9
--- /dev/null
+++ b/.config/nvim/lua/plugins/trouble.lua
@@ -0,0 +1,14 @@
1return {
2 "folke/trouble.nvim",
3 dependencies = { "nvim-tree/nvim-web-devicons" },
4 opts = {},
5 config = function()
6 local map = require("helpers.keys").map
7 map("n", "<leader>xx", function() require("trouble").open() end, "trouble: open")
8 map("n", "<leader>xw", function() require("trouble").open("workspace_diagnostics") end, "trouble: open workspace diagnostics")
9 map("n", "<leader>xd", function() require("trouble").open("document_diagnostics") end, "trouble: open document diagnostics")
10 map("n", "<leader>xq", function() require("trouble").open("quickfix") end, "trouble: open quickfix")
11 map("n", "<leader>xl", function() require("trouble").open("loclist") end, "trouble: open loclist")
12 map("n", "gR", function() require("trouble").open("lsp_references") end, "trouble: open lsp references")
13 end,
14}