refactor(lualine.lua): remove IsMoltenActive function and related configuration as it is no longer needed in the lualine setup

chore(lualine.lua): clean up unnecessary code related to molten statusline configuration to improve code readability and maintainability
This commit is contained in:
David Ibia
2024-07-01 15:54:14 +01:00
parent 50dd3df42a
commit 30144c8a48

View File

@@ -1,6 +1,5 @@
local lualine = require("lualine")
local lazy_status = require("lazy.status") -- to configure lazy pending updates count
local molten_status = require("molten.status") -- to configure molten statusline
local colors = {
@@ -89,19 +88,6 @@ 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 = {
@@ -114,11 +100,6 @@ lualine.setup({
cond = IsFlutterToolsActive,
color = { fg = "#ff9e64" },
},
{
molten_status.kernels,
cond = IsMoltenActive,
color = { fg = "#ff9e64" },
},
{
GetPoetvStatusLine,
cond = IsPoetvActive,