Updated lualine
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user