feat(nvim): improve trouble setup

This commit is contained in:
Price Hiller 2023-07-24 17:52:13 -05:00
parent a2a9b9e13d
commit a158be7724
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -808,13 +808,24 @@ lazy.setup({
{
"folke/trouble.nvim",
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 = {
"Trouble",
"TroubleClose",
"TroubleToggle",
"TroubleRefresh",
},
opts = {},
},
-- Github CLI integration