#2481 - Use text to insert from insertText

This commit is contained in:
w0rp
2019-05-09 17:26:33 +01:00
parent bff3d253e9
commit 722c3e8dae
2 changed files with 27 additions and 1 deletions

View File

@@ -386,6 +386,8 @@ function! ale#completion#ParseLSPCompletions(response) abort
if get(l:item, 'insertTextFormat') is s:LSP_INSERT_TEXT_FORMAT_PLAIN
\&& type(get(l:item, 'textEdit')) is v:t_dict
let l:text = l:item.textEdit.newText
elseif type(get(l:item, 'insertText')) is v:t_string
let l:text = l:item.insertText
else
let l:text = l:item.label
endif