refactor(nvim): improve trouble config
This commit is contained in:
parent
cea7fd6e0b
commit
1176858f95
@ -46,18 +46,13 @@ return {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
require("trouble").setup({
|
require("trouble").setup({
|
||||||
|
auto_open = true,
|
||||||
auto_close = true,
|
auto_close = true,
|
||||||
position = "right",
|
position = "right",
|
||||||
action_keys = {
|
action_keys = {
|
||||||
cancel = "q"
|
cancel = "q"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
vim.api.nvim_create_autocmd("BufLeave", {
|
|
||||||
pattern = "*Trouble*",
|
|
||||||
callback = function()
|
|
||||||
vim.api.nvim_win_close(0, true)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
cmd = {
|
cmd = {
|
||||||
"Trouble",
|
"Trouble",
|
||||||
|
Loading…
Reference in New Issue
Block a user