2023-12-29 15:52:19 +00:00
|
|
|
require("trouble").setup {
|
|
|
|
position = "bottom",
|
2024-06-28 19:45:46 +00:00
|
|
|
modes = {
|
|
|
|
diagnostics = {
|
|
|
|
auto_open = true,
|
|
|
|
auto_close = false,
|
|
|
|
auto_preview = false
|
|
|
|
},
|
|
|
|
},
|
2023-12-29 15:52:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Keybindings
|
2024-06-28 19:45:46 +00:00
|
|
|
vim.keymap.set("n", "<leader>x", "<cmd>Trouble diagnostics<cr>", { noremap = true, silent = true })
|
|
|
|
vim.keymap.set("n", ")", function()
|
2024-01-14 16:40:13 +00:00
|
|
|
require("trouble").next({ skip_groups = true, jump = true })
|
|
|
|
end, { noremap = true, silent = true })
|
2024-06-28 19:45:46 +00:00
|
|
|
vim.keymap.set("n", "(", function()
|
2024-01-14 16:40:13 +00:00
|
|
|
require("trouble").previous({ skip_groups = true, jump = true })
|
|
|
|
end, { noremap = true, silent = true })
|