EdenQwQ/home/programs/coding/nixvim/lualine.nix
2025-03-01 22:35:08 +08:00

128 lines
2.8 KiB
Nix

{ config, ... }:
let
colors = config.lib.stylix.colors;
in
{
programs.nixvim.plugins.lualine = {
enable = true;
settings = {
options = {
theme = {
normal = {
a = {
bg = "#nil";
};
b = {
bg = "nil";
};
c = {
bg = "nil";
};
z = {
bg = "nil";
};
y = {
bg = "nil";
};
};
};
globalstatus = true;
disabled_filetypes = {
statusline = [
"dashboard"
"alpha"
"starter"
"snacks_dashboard"
];
};
};
inactive_sections = {
lualine_x = [
"filename"
"filetype"
];
};
sections = {
lualine_a = [
{
__unkeyed = "mode";
fmt = "string.lower";
color = {
fg = colors.base0E;
bg = "nil";
};
separator.left = "";
separator.right = "";
}
];
lualine_b = [
{
__unkeyed = "branch";
icon.__unkeyed = "";
color = {
bg = "nil";
};
separator.left = "";
separator.right = "";
}
{
__unkeyed = "diff";
separator.left = "";
separator.right = "";
}
];
lualine_c = [
{
__unkeyed = "diagnostic";
symbols = {
error = " ";
warn = " ";
info = " ";
hint = "󰝶 ";
};
color = {
fg = colors.base08;
bg = "nil";
};
separator.left = "";
separator.right = "";
}
];
lualine_x = [ "" ];
lualine_y = [
# {
# __unkeyed = "filetype";
# icon_only = true;
# separator.left = "";
# separator.right = "";
# }
{
__unkeyed = "filename";
# symbols = {
# modified = "";
# readonly = "👁️";
# unnamed = "";
# };
color = {
fg = colors.base05;
bg = "nil";
};
separator.left = "";
separator.right = "";
}
];
lualine_z = [
{
__unkeyed = "location";
color = {
fg = colors.base0B;
bg = "nil";
};
separator.left = "";
separator.right = "";
}
];
};
};
};
}