fix: fix builtin loclist not being closed
This commit is contained in:
parent
650c582972
commit
9e3127ffca
@ -70,8 +70,9 @@ function ToggleTroubleAuto()
|
||||
local ok, trouble = pcall(require, 'trouble')
|
||||
if ok then
|
||||
vim.defer_fn(function()
|
||||
vim.cmd 'lcl'
|
||||
vim.cmd 'cclose'
|
||||
trouble.open 'quickfix'
|
||||
trouble.open 'loclist'
|
||||
end, 0)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user