diff options
author | Yigit Sever | 2023-08-18 23:42:39 +0300 |
---|---|---|
committer | Yigit Sever | 2023-08-18 23:42:39 +0300 |
commit | 387e08c52d9752bc839c71119f140ba8435c3d70 (patch) | |
tree | 3bb20c0e58ccf1e65ced4cfdfb6459e226a24672 /.config/nvim/lua/plugins/trouble.lua | |
parent | 14c14cfcc9aeb4bada6d2429162ded2917f26a94 (diff) | |
download | dotfiles-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.lua | 14 |
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 @@ | |||
1 | return { | ||
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 | } | ||