autoload/lsp/completion.vim | 3 ++- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 5932990412450cfcc246da3c98897e920e0660e3..04e92fa970c95501a170d9ef4b8961154a0ce892 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -125,9 +125,10 @@ if item->get('insertTextFormat', 1) == 2 # 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