fix lint errors

This commit is contained in:
Michael Chris Lopez
2021-11-06 12:04:23 +08:00
parent 8185f46dcd
commit 0473b25a05
8 changed files with 28 additions and 7 deletions

View File

@@ -57,7 +57,8 @@ local function transform(colors)
return { text }
end
local function specs_to_colors(specs)
local function specs_to_colors(colorscheme)
local specs, name = unpack(colorscheme)
return {
name = name,
common_fg = specs.Folded.fg,
@@ -83,10 +84,12 @@ local function specs_to_colors(specs)
}
end
-- selene: allow(undefined_variable)
run(
specs,
{ specs, name },
specs_to_colors,
transform,
{ prepend, [[" This file is auto-generated by shipwright.nvim]] },
{ overwrite, string.format("autoload/lightline/colorscheme/%s.vim", name) }
)
-- selene: deny(undefined_variable)