mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
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:
@@ -1,6 +1,5 @@
|
|||||||
local lualine = require("lualine")
|
local lualine = require("lualine")
|
||||||
local lazy_status = require("lazy.status") -- to configure lazy pending updates count
|
local lazy_status = require("lazy.status") -- to configure lazy pending updates count
|
||||||
local molten_status = require("molten.status") -- to configure molten statusline
|
|
||||||
|
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
@@ -89,19 +88,6 @@ function IsPoetvActive()
|
|||||||
end
|
end
|
||||||
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
|
-- configure lualine with modified theme
|
||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
@@ -114,11 +100,6 @@ lualine.setup({
|
|||||||
cond = IsFlutterToolsActive,
|
cond = IsFlutterToolsActive,
|
||||||
color = { fg = "#ff9e64" },
|
color = { fg = "#ff9e64" },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
molten_status.kernels,
|
|
||||||
cond = IsMoltenActive,
|
|
||||||
color = { fg = "#ff9e64" },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
GetPoetvStatusLine,
|
GetPoetvStatusLine,
|
||||||
cond = IsPoetvActive,
|
cond = IsPoetvActive,
|
||||||
|
|||||||
Reference in New Issue
Block a user