refactor(nvim): improve trouble config

This commit is contained in:
Price Hiller 2023-09-28 16:40:15 -05:00
parent cea7fd6e0b
commit 1176858f95
No known key found for this signature in database

View File

@ -46,18 +46,13 @@ return {
end
})
require("trouble").setup({
auto_open = true,
auto_close = true,
position = "right",
action_keys = {
cancel = "q"
}
})
vim.api.nvim_create_autocmd("BufLeave", {
pattern = "*Trouble*",
callback = function()
vim.api.nvim_win_close(0, true)
end,
})
end,
cmd = {
"Trouble",