File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ endfunction
85
85
86
86
function ! s: get_parameter_label (signature, parameter) abort
87
87
if has_key (a: parameter , ' label' )
88
- if type (a: parameter [' label' ]) == v: t_list
88
+ if type (a: parameter [' label' ]) == type ([])
89
89
let l: string_range = a: parameter [' label' ]
90
90
return strcharpart (
91
91
\ a: signature [' label' ],
@@ -102,8 +102,8 @@ function! s:get_parameter_doc(parameter) abort
102
102
return ' '
103
103
endif
104
104
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 ({} )
107
107
let l: doc [' value' ] = printf (' ***%s*** - %s' , a: parameter [' label' ], l: doc [' value' ])
108
108
return l: doc
109
109
endif
You can’t perform that action at this time.
0 commit comments