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