From e8ed01849f1728fe047f332fec68a6a8f0928d8f Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Wed, 15 Mar 2023 20:27:59 +0800 Subject: [PATCH] fix: should allow autocompl items icase work and be more smooth Signed-off-by: shane.xb.qian --- autoload/lsp/completion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1