Updated lualine
This commit is contained in:
@@ -78,6 +78,11 @@ return {
|
|||||||
hide_in_width = function()
|
hide_in_width = function()
|
||||||
return vim.fn.winwidth(0) > 80
|
return vim.fn.winwidth(0) > 80
|
||||||
end,
|
end,
|
||||||
|
alpha = function()
|
||||||
|
if vim.bo.filetype ~= "alpha" then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local mode_color = {
|
local mode_color = {
|
||||||
@@ -163,6 +168,18 @@ return {
|
|||||||
local filename = {
|
local filename = {
|
||||||
"filename",
|
"filename",
|
||||||
color = { fg = colors.magenta, bg = "None", gui = "bold" },
|
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 = {
|
local branch = {
|
||||||
"branch",
|
"branch",
|
||||||
@@ -178,6 +195,7 @@ return {
|
|||||||
on_click = function()
|
on_click = function()
|
||||||
vim.cmd("LspInfo")
|
vim.cmd("LspInfo")
|
||||||
end,
|
end,
|
||||||
|
cond = conditions.alpha,
|
||||||
}
|
}
|
||||||
local diagnostics = {
|
local diagnostics = {
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
@@ -221,6 +239,7 @@ return {
|
|||||||
},
|
},
|
||||||
show_colors = true,
|
show_colors = true,
|
||||||
color = { bg = "None", gui = "bold" },
|
color = { bg = "None", gui = "bold" },
|
||||||
|
cond = conditions.alpha,
|
||||||
}
|
}
|
||||||
local diff = {
|
local diff = {
|
||||||
"diff",
|
"diff",
|
||||||
@@ -236,6 +255,7 @@ return {
|
|||||||
"fileformat",
|
"fileformat",
|
||||||
fmt = string.upper,
|
fmt = string.upper,
|
||||||
color = { fg = colors.green, bg = "None", gui = "bold" },
|
color = { fg = colors.green, bg = "None", gui = "bold" },
|
||||||
|
cond = conditions.alpha,
|
||||||
}
|
}
|
||||||
local lazy = {
|
local lazy = {
|
||||||
require("lazy.status").updates,
|
require("lazy.status").updates,
|
||||||
@@ -272,6 +292,7 @@ return {
|
|||||||
local filetype = {
|
local filetype = {
|
||||||
"filetype",
|
"filetype",
|
||||||
color = { fg = colors.darkblue, bg = "None" },
|
color = { fg = colors.darkblue, bg = "None" },
|
||||||
|
cond = conditions.alpha,
|
||||||
}
|
}
|
||||||
local progress = {
|
local progress = {
|
||||||
"progress",
|
"progress",
|
||||||
@@ -299,7 +320,7 @@ return {
|
|||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
lualine_b = { filename, branch, lsp_status },
|
lualine_b = { filename, alpha, branch, lsp_status },
|
||||||
lualine_c = { diagnostics, sep, macro_recording, harpoon },
|
lualine_c = { diagnostics, sep, macro_recording, harpoon },
|
||||||
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
||||||
lualine_y = { buffers, filetype, progress },
|
lualine_y = { buffers, filetype, progress },
|
||||||
|
|||||||
Reference in New Issue
Block a user