From 66a5df736a3770d02e27c674106bcfea7ce288aa Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Sun, 19 Mar 2023 17:19:58 +0100 Subject: [PATCH] Don't filter completion items if the server reports them as being incomplete --- autoload/lsp/completion.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.48.1