wip(nvim/lualine): make similar to lazyvim bar

This commit is contained in:
Michael Thomas 2024-06-13 01:23:01 +02:00
parent b64dd718c1
commit 4281afe9cf

View File

@ -1,33 +1,72 @@
{ {icons, ...}: {
plugins.lualine = { plugins.lualine = {
enable = false; enable = true;
alwaysDivideMiddle = true; alwaysDivideMiddle = true;
globalstatus = true; globalstatus = true;
ignoreFocus = ["neo-tree"]; ignoreFocus = ["neo-tree"];
extensions = ["fzf"]; extensions = ["fzf"];
theme = "auto"; theme = "auto";
disabledFiletypes = {
statusline = ["dashboard" "alpha" "starter"];
};
componentSeparators = { componentSeparators = {
left = "|"; left = "·";
right = "|"; right = "·";
}; };
sectionSeparators = { sectionSeparators = {
left = ""; #  left = ""; # 
right = ""; #  right = ""; # 
}; };
sections = { sections = {
lualine_a = ["mode"]; lualine_a = ["mode"];
lualine_b = [ lualine_b = ["branch"];
lualine_c = [
{ {
name = "branch"; name = "diagnostics";
icon = ""; extraConfig.symbols = {
error = icons.diagnostics.Error;
warn = icons.diagnostics.Warn;
info = icons.diagnostics.Info;
hint = icons.diagnostics.Hint;
};
} }
"diff" {
"diagnostics" name = "filetype";
extraConfig.icon_only = true;
separator = {
left = "";
right = "";
};
padding = {
left = 1;
right = 0;
};
}
"filename"
]; ];
lualine_c = ["filename"];
lualine_x = ["filetype"]; lualine_x = [];
lualine_y = ["progress"]; lualine_y = [
lualine_z = [''" " .. os.date("%R")'']; {
name = "progress";
separator = {
left = " ";
right = " ";
};
padding = {
left = 1;
right = 1;
};
}
{
name = "location";
padding = {
left = 0;
right = 1;
};
}
];
lualine_z = [''" " .. os.date("%I:%M %p"):gsub("0*", "", 1)''];
}; };
}; };
} }