summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/trouble.lua
diff options
context:
space:
mode:
authorYigit Sever2023-08-18 23:42:39 +0300
committerYigit Sever2023-08-18 23:42:39 +0300
commit387e08c52d9752bc839c71119f140ba8435c3d70 (patch)
tree3bb20c0e58ccf1e65ced4cfdfb6459e226a24672 /.config/nvim/lua/plugins/trouble.lua
parent14c14cfcc9aeb4bada6d2429162ded2917f26a94 (diff)
downloaddotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.gz
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.bz2
dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.zip
nvim: switch to lazy.nvim
revert this as whole, if you miss the good old days
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}