feat(nvim): improve trouble setup
This commit is contained in:
parent
a2a9b9e13d
commit
a158be7724
@ -808,13 +808,24 @@ lazy.setup({
|
|||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
config = function()
|
||||||
|
require("trouble").setup({
|
||||||
|
auto_close = true,
|
||||||
|
position = "right",
|
||||||
|
})
|
||||||
|
vim.api.nvim_create_autocmd("BufLeave", {
|
||||||
|
pattern = "*Trouble*",
|
||||||
|
callback = function()
|
||||||
|
vim.api.nvim_win_close(0, true)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
cmd = {
|
cmd = {
|
||||||
"Trouble",
|
"Trouble",
|
||||||
"TroubleClose",
|
"TroubleClose",
|
||||||
"TroubleToggle",
|
"TroubleToggle",
|
||||||
"TroubleRefresh",
|
"TroubleRefresh",
|
||||||
},
|
},
|
||||||
opts = {},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Github CLI integration
|
-- Github CLI integration
|
||||||
|
Loading…
Reference in New Issue
Block a user