Skip to content

Commit

Permalink
Added fix for snippet support.
Browse files Browse the repository at this point in the history
From this PR natebosch#396
  • Loading branch information
mibu138 committed Mar 6, 2024
1 parent 19670de commit cced91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsc/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cced91c

Please sign in to comment.