This commit is contained in:
hrsh7th
2021-01-26 20:18:32 +09:00
committed by GitHub
parent 7d5cd2763c
commit 0c77beb2eb

View File

@@ -126,6 +126,7 @@ function! s:on_complete_done_after() abort
if get(l:completion_item, 'insertTextFormat', 1) == 2
" insert Snippet.
call lsp#utils#text_edit#apply_text_edits('%', [{ 'range': l:range, 'newText': '' }])
call cursor(lsp#utils#position#lsp_to_vim('%', l:range['start']))
if exists('g:lsp_snippet_expand') && len(g:lsp_snippet_expand) > 0
call g:lsp_snippet_expand[0]({ 'snippet': l:text })
else