2023-12-29 15:52:19 +00:00
|
|
|
require("trouble").setup {
|
|
|
|
position = "bottom",
|
|
|
|
auto_open = true,
|
2024-03-05 11:19:49 +00:00
|
|
|
auto_close = true,
|
2023-12-29 15:52:19 +00:00
|
|
|
auto_preview = false,
|
|
|
|
icons = true,
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Keybindings
|
|
|
|
vim.keymap.set("n", "<leader>x", "<cmd>TroubleToggle workspace_diagnostics<cr>", { noremap = true, silent = true })
|
2024-01-14 16:40:13 +00:00
|
|
|
vim.keymap.set("n", ")", function ()
|
|
|
|
require("trouble").next({ skip_groups = true, jump = true })
|
|
|
|
end, { noremap = true, silent = true })
|
|
|
|
vim.keymap.set("n", "(", function ()
|
|
|
|
require("trouble").previous({ skip_groups = true, jump = true })
|
|
|
|
end, { noremap = true, silent = true })
|