]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: using \C to force matching complete item
authorycycyyc <944696498@qq.com>
Tue, 21 Mar 2023 02:06:17 +0000 (10:06 +0800)
committerycycyyc <944696498@qq.com>
Tue, 21 Mar 2023 02:06:17 +0000 (10:06 +0800)
autoload/lsp/completion.vim

index 04e92fa970c95501a170d9ef4b8961154a0ce892..fe9799d02c71ef71d362ea21ab6abb4df3777588 100644 (file)
@@ -179,7 +179,7 @@ export def CompletionReply(lspserver: dict<any>, 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