From 022f2d519516dbe67130fde25c06f7bb57fa129d Mon Sep 17 00:00:00 2001 From: Girish Palya Date: Thu, 1 Jun 2023 17:26:53 +0200 Subject: [PATCH] Use string evaluation M autoload/lsp/completion.vim --- 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 8b7918d..06dcf3c 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -143,7 +143,7 @@ def CompletionVsnip(items: list>) var chars = escape(abbr, '\/?')->split('\zs') var chars_pattern = '\%(\V' .. chars->join('\m\|\V') .. '\m\)' var separator = chars[0] =~ '\a' ? '\<' : '' - return separator .. '\V' .. chars[0] .. '\m' .. chars_pattern .. '*$' + return $'{separator}\V{chars[0]}\m{chars_pattern}*$' enddef if charcol('.') == 1 -- 2.48.1