Skip to content

Commit c616af0

Browse files
committed
🐛 Use registered plugins instead in denops#cache#update
Close #360
1 parent 5e0ee61 commit c616af0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autoload/denops/cache.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
let s:root = expand('<sfile>:p:h:h:h')
1+
const s:root = expand('<sfile>:p:h:h:h')
2+
const s:mod = denops#_internal#path#join([s:root, 'denops', '@denops-private', 'mod.ts'])
23
let s:job = v:null
34

45
function! denops#cache#update(...) abort
5-
let l:options = extend(#{ reload: v:false }, a:0 ? a:1 : {})
6-
let l:entryfiles = extend([
7-
\ denops#_internal#path#join([s:root, 'denops', '@denops-private', 'mod.ts']),
8-
\], map(denops#_internal#plugin#collect(), { _, v -> v.script }))
6+
const l:options = extend(#{ reload: v:false }, a:0 ? a:1 : {})
7+
const l:plugins = denops#_internal#plugin#list()
8+
const l:entryfiles = extend([s:mod], map(copy(l:plugins), { _, v -> v.script }))
99

1010
let l:args = [g:denops#deno, 'cache']
1111

0 commit comments

Comments
 (0)