From: Andreas Louv Date: Sun, 19 Mar 2023 16:19:58 +0000 (+0100) Subject: Don't filter completion items if the server reports them as being incomplete X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=66a5df736a3770d02e27c674106bcfea7ce288aa;p=vim-lsp.git Don't filter completion items if the server reports them as being incomplete --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 5932990..04e92fa 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -125,9 +125,10 @@ export def CompletionReply(lspserver: dict, cItems: any) # snippet completion. Needs a snippet plugin to expand the snippet. # Remove all the snippet placeholders d.word = MakeValidWord(d.word) - else + elseif !lspserver.completeItemsIsIncomplete # plain text completion. If the completion item text doesn't start with # the current (case ignored) keyword prefix, skip it. + # Don't attempt to filter on the items, when "isIncomplete" is set if prefix != '' && d.word->tolower()->stridx(prefix) != 0 continue endif