diff --git a/autoload/lsc/complete.vim b/autoload/lsc/complete.vim index 3978dcb..f1d9c25 100644 --- a/autoload/lsc/complete.vim +++ b/autoload/lsc/complete.vim @@ -230,7 +230,7 @@ function! s:CompletionItemWord(lsp_item) abort \ 'snippet': l:item.word, \ 'snippet_trigger': l:item.word \ }) - let l:item.word = a:lsp_item.label + let l:item.word = substitute(a:lsp_item.label, '^\s*\|\s*$', '', 'g') endif return l:item endfunction