summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-09 17:26:33 +0100
committerw0rp <devw0rp@gmail.com>2019-05-09 17:26:33 +0100
commit722c3e8dae80b9cea738ddb3df4f7d066d669e53 (patch)
treed1fb0f3cfcf0ce094c562181931b738efed730b3 /autoload
parentbff3d253e9d1de36879c1b2bc1bfdbc5b450d139 (diff)
downloadale-722c3e8dae80b9cea738ddb3df4f7d066d669e53.zip
#2481 - Use text to insert from insertText
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/completion.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim
index 1d42c489..e775347b 100644
--- a/autoload/ale/completion.vim
+++ b/autoload/ale/completion.vim
@@ -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