Skip to content

Commit 60a1d58

Browse files
hrsh7thprabirshrestha
authored andcommitted
Fix #512 (#514)
1 parent da078b1 commit 60a1d58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/lsp/ui/vim/signature_help.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ endfunction
8585

8686
function! s:get_parameter_label(signature, parameter) abort
8787
if has_key(a:parameter, 'label')
88-
if type(a:parameter['label']) == v:t_list
88+
if type(a:parameter['label']) == type([])
8989
let l:string_range = a:parameter['label']
9090
return strcharpart(
9191
\ a:signature['label'],
@@ -102,8 +102,8 @@ function! s:get_parameter_doc(parameter) abort
102102
return ''
103103
endif
104104

105-
if type(a:parameter['documentation']) == v:t_dict
106-
let l:doc = copy(a:parameter['documentation'])
105+
let l:doc = copy(a:parameter['documentation'])
106+
if type(l:doc) == type({})
107107
let l:doc['value'] = printf('***%s*** - %s', a:parameter['label'], l:doc['value'])
108108
return l:doc
109109
endif

0 commit comments

Comments
 (0)