diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-05 21:26:02 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-05 21:26:02 -0400 |
| commit | e5c8f244466ff4da4b12c1bbfd2292a8408ff1d2 (patch) | |
| tree | 978e99f5e9fdb7877a15ebe54eaa6d06dee71a92 /.config/nvim/lua/plugins/trouble.lua | |
| parent | 22f001c91a158c1bc576a74ecae5a33402f83ab8 (diff) | |
Add Neovim config
Diffstat (limited to '.config/nvim/lua/plugins/trouble.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/trouble.lua | 15 |
1 files changed, 15 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..6678356 --- /dev/null +++ b/.config/nvim/lua/plugins/trouble.lua @@ -0,0 +1,15 @@ +return { + { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + keys = { + { "<leader>xx", "<Cmd>TroubleToggle<CR>", desc = "Toggle trouble", silent = true }, + { "<leader>xw", "<Cmd>TroubleToggle workspace_diagnostics<CR>", desc = "Toggle workspace diagnostics", silent = true }, + { "<leader>xd", "<Cmd>TroubleToggle document_diagnostics<CR>", desc = "Toggle document diagnostics", silent = true }, + { "<leader>xl", "<Cmd>TroubleToggle loclist<CR>", desc = "Toggle loclist", silent = true }, + { "<leader>xq", "<Cmd>TroubleToggle quickfix<CR>", desc = "Toggle quickfix list", silent = true }, + { "gR", "<Cmd>TroubleToggle lsp_references<CR>", desc = "Toggle LSP reference list", silent = true }, + }, + opts = {}, + }, +} |
