diff options
Diffstat (limited to 'lua/aotrix/quickfix.lua')
| -rw-r--r-- | lua/aotrix/quickfix.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/aotrix/quickfix.lua b/lua/aotrix/quickfix.lua index 14195b4..c169d75 100644 --- a/lua/aotrix/quickfix.lua +++ b/lua/aotrix/quickfix.lua @@ -14,7 +14,7 @@ vim.api.nvim_create_autocmd('DiagnosticChanged', { if quickfix_is_open then if nb_elements_quickfix == 0 then quickfix_is_open = false - vim.cmd.cclose() + vim.defer_fn(function() vim.cmd.cclose() end, 0) else vim.diagnostic.setqflist() end |
