From cf2ca314bed46474abc2bdc3f3f4dcadf530e2f8 Mon Sep 17 00:00:00 2001 From: ycycyyc <944696498@qq.com> Date: Tue, 21 Mar 2023 10:06:17 +0800 Subject: [PATCH] fix: using \C to force matching complete item --- autoload/lsp/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 04e92fa..fe9799d 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -179,7 +179,7 @@ export def CompletionReply(lspserver: dict, cItems: any) endif if completeItems->len() == 1 - && getline('.')->matchstr($'{completeItems[0].word}\>') != '' + && getline('.')->matchstr($'\C{completeItems[0].word}\>') != '' # only one complete match. No need to show the completion popup return endif -- 2.48.1