reorganize generated vimscript

This commit is contained in:
Michael Chris Lopez
2021-11-06 14:06:48 +08:00
parent a315e231f9
commit b8cab8f17d
14 changed files with 15 additions and 498 deletions

View File

@@ -1,5 +1,4 @@
local template = [[function! $name#load()
local template = [[function! zenbones#generated#$name#load() abort
$termcolors
$vimcolors
highlight! link StatusLineTerm StatusLine
@@ -25,9 +24,7 @@ if has('terminal')
\ g:terminal_color_15
\ ]
endif
endfunction
]]
endfunction]]
local helpers = require "shipwright.transform.helpers"
@@ -58,6 +55,6 @@ run(
end,
to_vim_autoload,
{ prepend, [[" This file is auto-generated by shipwright.nvim]] },
{ overwrite, string.format("autoload/%s.vim", name) }
{ overwrite, string.format("autoload/zenbones/generated/%s.vim", name) }
)
-- selene: deny(undefined_variable)