From 30144c8a481fa1f35f6fcfa1381ad70bebcdf8ed Mon Sep 17 00:00:00 2001 From: David Ibia Date: Mon, 1 Jul 2024 15:54:14 +0100 Subject: [PATCH] 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 --- lua/absolute/after/lualine.lua | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/lua/absolute/after/lualine.lua b/lua/absolute/after/lualine.lua index 28ed800..d747680 100644 --- a/lua/absolute/after/lualine.lua +++ b/lua/absolute/after/lualine.lua @@ -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 lazy_status = require("lazy.status") -- to configure lazy pending updates count 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,