nvim/lua/plugins/trouble.lua

17 lines
472 B
Lua
Raw Normal View History

return {
"folke/trouble.nvim",
cond = not vim.g.vscode,
dependencies = "nvim-tree/nvim-web-devicons",
cmd = "TroubleToggle",
init = function() vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>") end,
2023-05-16 09:22:33 +01:00
config = true,
opts = {
mode = "workspace_diagnostics",
auto_open = false,
auto_close = true,
2023-05-16 09:22:33 +01:00
auto_preview = true,
auto_jump = { "lsp_definitions" },
use_diagnostic_signs = true,
2023-05-16 09:22:33 +01:00
},
}