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 Apr 29, 2023
1 parent 1493cee commit 0c71047
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 @@ -233,7 +233,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 0c71047

Please sign in to comment.