Use vim.lsp.util.apply_text_edits instead of vim-vital-vs

This commit is contained in:
hrsh7th
2021-12-01 14:17:16 +09:00
parent ed000eb3d4
commit f2f9a3325c
11 changed files with 8 additions and 778 deletions

View File

@@ -1,18 +1,6 @@
let s:bridge_id = 0
let s:sources = {}
"
" cmp#apply_text_edits
"
" TODO: Remove this if nvim's apply_text_edits will be improved.
"
function! cmp#apply_text_edits(bufnr, text_edits) abort
if !exists('s:TextEdit')
let s:TextEdit = vital#cmp#import('VS.LSP.TextEdit')
endif
call s:TextEdit.apply(a:bufnr, a:text_edits)
endfunction
"
" cmp#register_source
"