tb-dotfiles/chezmoi/private_dot_config/nvim/lua/plugins/trouble.lua
2023-08-10 23:38:15 -04:00

14 lines
515 B
Lua

return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("trouble").setup()
local keys = require("helpers.keys")
keys.map("", "<leader>xx", "<cmd>TroubleToggle<cr>")
keys.map("", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>")
keys.map("", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>")
keys.map("", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>")
keys.map("", "<leader>xl", "<cmd>TroubleToggle loclist<cr>")
end
}