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')
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user