{action} values: *setqflist-action* *E927*
'a' The items from {list} are added to the existing
quickfix list. If there is no existing list, then a
new list is created.
'r' The items from the current quickfix list are replaced
with the items from {list}. This can also be used to
clear the list: >
:call setqflist([], 'r')
'f' All the quickfix lists in the quickfix stack are
freed.
What
Does anyone know the reason calling
setqflist([])
in the case below? https://github.com/prabirshrestha/vim-lsp/blob/39bad0b67eeba88bf2f0477327693c8e552044fa/autoload/lsp/ui/vim.vim#L211-L212 https://github.com/prabirshrestha/vim-lsp/blob/39bad0b67eeba88bf2f0477327693c8e552044fa/autoload/lsp/ui/vim.vim#L249-L250 https://github.com/prabirshrestha/vim-lsp/blob/39bad0b67eeba88bf2f0477327693c8e552044fa/autoload/lsp/ui/vim.vim#L466-L467 Due to this, I need to execute:colder
twice to refer the previous quickfix list. I think it is enough to specify the other option such asr
.Steps to reproduce
:LspReference
at the cursor position below https://github.com/prabirshrestha/vim-lsp/blob/master/autoload/lsp/ui/vim.vim#L5C22-L5C36:chistory
We can see the first quickfix shows 0 errors, which means the first quickfix is no needed and it wastes history. So, I want to change that.