From e825fc4f2749ac0f9363463d45a9c670dbc39dea Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 8 May 2025 11:16:46 +0200 Subject: [PATCH] Updated lualine --- lua/taken/plugins/lualine.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lua/taken/plugins/lualine.lua b/lua/taken/plugins/lualine.lua index d2ee9f0..4367909 100644 --- a/lua/taken/plugins/lualine.lua +++ b/lua/taken/plugins/lualine.lua @@ -78,6 +78,11 @@ return { hide_in_width = function() return vim.fn.winwidth(0) > 80 end, + alpha = function() + if vim.bo.filetype ~= "alpha" then + return true + end + end, } local mode_color = { @@ -163,6 +168,18 @@ return { local filename = { "filename", color = { fg = colors.magenta, bg = "None", gui = "bold" }, + cond = conditions.alpha, + } + local alpha = { + function() + return "Alpha Dashboard" + end, + color = { fg = colors.magenta, bg = "None", gui = "bold" }, + cond = function() + if vim.bo.filetype == "alpha" then + return true + end + end, } local branch = { "branch", @@ -178,6 +195,7 @@ return { on_click = function() vim.cmd("LspInfo") end, + cond = conditions.alpha, } local diagnostics = { "diagnostics", @@ -221,6 +239,7 @@ return { }, show_colors = true, color = { bg = "None", gui = "bold" }, + cond = conditions.alpha, } local diff = { "diff", @@ -236,6 +255,7 @@ return { "fileformat", fmt = string.upper, color = { fg = colors.green, bg = "None", gui = "bold" }, + cond = conditions.alpha, } local lazy = { require("lazy.status").updates, @@ -272,6 +292,7 @@ return { local filetype = { "filetype", color = { fg = colors.darkblue, bg = "None" }, + cond = conditions.alpha, } local progress = { "progress", @@ -299,7 +320,7 @@ return { }, sections = { lualine_a = { mode }, - lualine_b = { filename, branch, lsp_status }, + lualine_b = { filename, alpha, branch, lsp_status }, lualine_c = { diagnostics, sep, macro_recording, harpoon }, lualine_x = { copilot, diff, fileformat, lazy, mason }, lualine_y = { buffers, filetype, progress },