fix: fix builtin loclist not being closed

This commit is contained in:
fiplox 2023-04-20 14:49:22 +02:00
parent 650c582972
commit 9e3127ffca
1 changed files with 2 additions and 1 deletions

View File

@ -70,8 +70,9 @@ function ToggleTroubleAuto()
local ok, trouble = pcall(require, 'trouble') local ok, trouble = pcall(require, 'trouble')
if ok then if ok then
vim.defer_fn(function() vim.defer_fn(function()
vim.cmd 'lcl'
vim.cmd 'cclose' vim.cmd 'cclose'
trouble.open 'quickfix' trouble.open 'loclist'
end, 0) end, 0)
end end
end end