reorganize generated vimscript
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user