.dotfiles/.config/nvim/after/plugin/trouble.lua

17 lines
563 B
Lua
Raw Normal View History

require("trouble").setup {
position = "bottom",
auto_open = true,
auto_close = true,
auto_preview = false,
icons = true,
}
-- Keybindings
vim.keymap.set("n", "<leader>x", "<cmd>TroubleToggle workspace_diagnostics<cr>", { noremap = true, silent = true })
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 })