Skip to content

Commit 184022f

Browse files
committed
Add explicit type for readability
M autoload/vimcomplete/omnifunc.vim
1 parent e3b9456 commit 184022f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/vimcomplete/omnifunc.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export def Completor(findstart: number, base: string): any
2727
elseif findstart == 2
2828
return 1
2929
endif
30-
var items = Omnifunc(findstart, partial ? base->strpart(prefix->len()) : base)
30+
var items: list<dict<any>> =
31+
Omnifunc(findstart, partial ? base->strpart(prefix->len()) : base)
3132
if items->empty()
3233
return []
3334
endif
@@ -42,7 +43,7 @@ export def Completor(findstart: number, base: string): any
4243
endif
4344
if options.dup
4445
# Cannot use extend() because of https://github.com/vim/vim/issues/16607
45-
# items->map((_, v) => v->extend({ dup: 1 })) #
46+
# items->map((_, v) => v->extend({ dup: 1 })) #
4647
for item in items
4748
item['dup'] = 1
4849
endfor

0 commit comments

Comments
 (0)