diff --git a/lua/absolute/after/lualine.lua b/lua/absolute/after/lualine.lua index fedd58d..28ed800 100644 --- a/lua/absolute/after/lualine.lua +++ b/lua/absolute/after/lualine.lua @@ -89,6 +89,19 @@ function IsPoetvActive() end end +function IsMoltenActive() + -- Check if molten is active + -- If molten is active, then return true + + -- Check if vim.fn.MoltenStatusLineInit is a function + + if vim.fn.exists("*MoltenStatusLineInit") == 1 then + return molten_status.initialized + else + return false + end +end + -- configure lualine with modified theme lualine.setup({ options = { @@ -101,11 +114,10 @@ lualine.setup({ cond = IsFlutterToolsActive, color = { fg = "#ff9e64" }, }, - { - molten_status.initialized, - }, { molten_status.kernels, + cond = IsMoltenActive, + color = { fg = "#ff9e64" }, }, { GetPoetvStatusLine,