From: shane.xb.qian Date: Wed, 15 Mar 2023 12:27:59 +0000 (+0800) Subject: fix: should allow autocompl items icase work and be more smooth X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e8ed01849f1728fe047f332fec68a6a8f0928d8f;p=vim-lsp.git fix: should allow autocompl items icase work and be more smooth Signed-off-by: shane.xb.qian --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index ef16da4..d0d2451 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -106,8 +106,8 @@ export def CompletionReply(lspserver: dict, cItems: any) 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