Skip to content

Commit 0c5129a

Browse files
committed
👍 Do NOT discover/find in denops#plugin#check_type
1 parent 669f05d commit 0c5129a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

autoload/denops/_internal/plugin.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ function! denops#_internal#plugin#get(name) abort
3737
return s:plugins[a:name]
3838
endfunction
3939

40+
function! denops#_internal#plugin#list() abort
41+
return values(s:plugins)
42+
endfunction
43+
4044
function! denops#_internal#plugin#load(name, script) abort
4145
const l:script = denops#_internal#path#norm(a:script)
4246
const l:args = [a:name, l:script]

autoload/denops/plugin.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ endfunction
6767

6868
function! denops#plugin#check_type(...) abort
6969
let l:plugins = a:0
70-
\ ? [denops#_internal#plugin#find(a:1)]
71-
\ : denops#_internal#plugin#collect()
70+
\ ? [denops#_internal#plugin#get(a:1)]
71+
\ : denops#_internal#plugin#list()
7272
let l:args = [g:denops#deno, 'check']
7373
let l:args = extend(l:args, map(l:plugins, { _, v -> v.script }))
7474
let l:job = denops#_internal#job#start(l:args, {

0 commit comments

Comments
 (0)