diff options
| author | Aotrix <[email protected]> | 2025-03-03 04:16:56 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-03-03 04:16:56 +0100 |
| commit | 8eecbebc86b48b47d8e05bd403768be5bb550da9 (patch) | |
| tree | 9bf11144d8f106c2536b8d143b5bfeb56b54b969 | |
| parent | 0932413fc93ddeec675c20c03e1c312a09718e72 (diff) | |
fixed quicklist bug regarding edit action
| -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 |
