From 34bed10a7b7751eeb303ea254cc605228a499003 Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Thu, 2 Dec 2021 16:58:47 +0800 Subject: [PATCH] use default --- lua/zenbones/shipwright/runners/lualine.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/zenbones/shipwright/runners/lualine.lua b/lua/zenbones/shipwright/runners/lualine.lua index 46498ce..375287a 100644 --- a/lua/zenbones/shipwright/runners/lualine.lua +++ b/lua/zenbones/shipwright/runners/lualine.lua @@ -73,10 +73,10 @@ local function specs_to_colors(specs) } end -local ness_list = { "dim", "bright", "stark", "warm", "" } +local ness_list = { "dim", "bright", "stark", "warm", "default" } 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] if specs then ---@diagnostic disable: undefined-global @@ -86,7 +86,7 @@ for _, ness in ipairs(ness_list) do 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) } + { overwrite, string.format("lua/lualine/themes/%s_%s.lua", name, ness) } ) -- selene: deny(undefined_variable) ---@diagnostic enable: undefined-global