autoload/lsp/completion.vim | 4 ++-- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index ef16da42e0abfd08baaafc9ccc5007e474a3a4fa..d0d24513fb9b9b1cbe7fafc59254e9fcb2e9585e 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -106,8 +106,8 @@ # Remove all the snippet placeholders d.word = MakeValidWord(d.word) else # plain text completion. If the completion item text doesn't start with - # the current keyword prefix, skip it. - if prefix != '' && stridx(d.word, prefix) != 0 + # the current (case ignored) keyword prefix, skip it. + if prefix != '' && d.word !~? $'^{prefix}' continue endif endif