refactor(nvim): improve trouble config
This commit is contained in:
parent
cea7fd6e0b
commit
1176858f95
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user