nixvim/config/plugins/ui/lualine.nix
2024-05-11 00:51:10 +02:00

92 lines
1.8 KiB
Nix

_: {
plugins.lualine = {
enable = true;
globalstatus = true;
extensions = [
"neo-tree"
];
disabledFiletypes = {
statusline = ["startup" "alpha"];
};
theme = "catppuccin";
sections = {
lualine_a = [
{
name = "mode";
}
];
lualine_b = [
{
name = "branch";
icon = "";
}
];
lualine_c = [
{
name = "diagnostics";
extraConfig = {
symbols = {
error = " ";
warn = " ";
info = " ";
hint = "󰝶 ";
};
};
}
{
name = "filetype";
extraConfig = {
icon_only = true;
separator = "";
padding = {
left = 1;
right = 0;
};
};
}
{
name = "filename";
extraConfig = {
path = 1;
};
}
];
lualine_x = [
{
name = "diff";
extraConfig = {
symbos = {
added = " ";
modified = " ";
removed = " ";
};
source = {
__raw = ''
function()
local gitsings = vim.b.gitsigns_status_dict
if gitsigns then
return {
added = gitigns.added,
modified = gitigns.changed,
removed = gitigns.removed
}
end
end
'';
};
};
}
];
lualine_y = [
{
name = "progress";
}
];
lualine_z = [
{
name = "location";
}
];
};
};
}