lualine runner for each ness
This commit is contained in:
@@ -73,14 +73,22 @@ local function specs_to_colors(specs)
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
---@diagnostic disable: undefined-global
|
local ness_list = { "dim", "bright", "stark", "warm", "" }
|
||||||
-- selene: allow(undefined_variable)
|
|
||||||
run(
|
for _, ness in ipairs(ness_list) do
|
||||||
specs,
|
local specs_name = string.len(ness) > 0 and "specs_" .. ness or "specs"
|
||||||
specs_to_colors,
|
local specs = getfenv()[specs_name]
|
||||||
to_lualine,
|
if specs then
|
||||||
{ prepend, "-- This file is auto-generated by shipwright.nvim" },
|
---@diagnostic disable: undefined-global
|
||||||
{ overwrite, string.format("lua/lualine/themes/%s.lua", name) }
|
-- selene: allow(undefined_variable)
|
||||||
)
|
run(
|
||||||
-- selene: deny(undefined_variable)
|
specs,
|
||||||
---@diagnostic enable: undefined-global
|
specs_to_colors,
|
||||||
|
to_lualine,
|
||||||
|
{ prepend, "-- This file is auto-generated by shipwright.nvim" },
|
||||||
|
{ overwrite, string.format("lua/lualine/themes/%s%s.lua", name, specs_name) }
|
||||||
|
)
|
||||||
|
-- selene: deny(undefined_variable)
|
||||||
|
---@diagnostic enable: undefined-global
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user