summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorJoão Costa <jdpc557@gmail.com>2022-04-01 13:41:05 +0100
committerGitHub <noreply@github.com>2022-04-01 12:41:05 +0000
commitbc406a846ea6873152cfb2d6ba50456f03d7cbb4 (patch)
tree9efa7b8aeefa50e7790cb7c7a46a80056cc96a7a /autoload
parent0f55d371e92160812ff0a57b5f48f2010a420f0c (diff)
downloadale-bc406a846ea6873152cfb2d6ba50456f03d7cbb4.zip
Set default value for insertTextFormat (#4124)
Co-authored-by: w0rp <devw0rp@gmail.com>
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/completion.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim
index 512c42f2..1c9191a1 100644
--- a/autoload/ale/completion.vim
+++ b/autoload/ale/completion.vim
@@ -581,7 +581,7 @@ function! ale#completion#ParseLSPCompletions(response) abort
continue
endif
- if get(l:item, 'insertTextFormat') is s:LSP_INSERT_TEXT_FORMAT_PLAIN
+ if get(l:item, 'insertTextFormat', s:LSP_INSERT_TEXT_FORMAT_PLAIN) 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