Skip to content

Commit 95ad5fe

Browse files
committed
vitalizer: Install vital to `autoload/vital/_{plugin-name}/'
Change .vital file format. from: --------- {hash} Module1 Module2 --------- to: --------- {plugin-name} {hash} Module1 Module2 ---------
1 parent c5e5c63 commit 95ad5fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/vitalizer.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,12 @@ function! vitalizer#vitalize(name, to, modules, hash)
288288
" Install vital.
289289
let short_hash = hash[: s:HASH_SIZE]
290290
for f in files + s:REQUIRED_FILES
291-
let after = substitute(f, '__latest__', '_' . short_hash, '')
291+
let after = substitute(f, '__latest__', '_' . a:name, '')
292292
call s:copy(s:FP.join(g:vitalizer#vital_dir, f),
293293
\ s:FP.join(a:to, after))
294294
endfor
295-
call writefile([short_hash, ''] + installing_modules, vital_file_name)
295+
let content = [a:name, short_hash, ''] + installing_modules
296+
call writefile(content, vital_file_name)
296297

297298
return {
298299
\ 'prev_hash': vital_file.hash,

0 commit comments

Comments
 (0)