refactor(nvim): improve trouble.nvim integration with quickfix

This commit is contained in:
Price Hiller 2023-09-28 11:23:25 -05:00
parent 112c53d765
commit 4ba6f44dc1
No known key found for this signature in database

View File

@ -40,9 +40,17 @@ return {
},
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
vim.api.nvim_create_autocmd("QuickFixCmdPost", {
callback = function ()
vim.cmd("Trouble quickfix")
end
})
require("trouble").setup({
auto_close = true,
position = "right",
action_keys = {
cancel = "q"
}
})
vim.api.nvim_create_autocmd("BufLeave", {
pattern = "*Trouble*",