nix-config/modules/home-manager/nvim/lualine.nix

85 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
config,
lib,
2024-03-24 23:39:49 +01:00
pkgs,
...
}: {
config = lib.mkIf config.user.nvim.enable {
programs.nixvim = {
plugins.lualine = {
enable = true;
2024-09-28 00:04:19 +02:00
settings = {
options = {
alwaysDivideMiddle = true;
icons_enabled = true;
};
sections = {
lualine_a = [
"mode"
];
lualine_b = [
"branch"
"diff"
"diagnostics"
];
lualine_c = [
{
__unkeyed = "filename";
path = 1;
}
];
lualine_x = [
"encoding"
"fileformat"
"filetype"
];
lualine_y = [
"progress"
];
lualine_z = [
"location"
];
};
2024-03-24 23:39:49 +01:00
2024-09-28 00:04:19 +02:00
inactiveSections = {
lualine_a = [];
lualine_b = [];
lualine_c = ["filename"];
lualine_x = ["filetype"];
lualine_y = [];
lualine_z = [];
};
2024-03-24 23:39:49 +01:00
2024-09-28 00:04:19 +02:00
tabline = {
lualine_a = [
{
__unkeyed = "buffers";
mode = 4;
}
];
lualine_b = [];
lualine_c = [];
lualine_x = [];
lualine_y = [];
lualine_z = [
{
__unkeyed = "tabs";
2024-09-28 00:04:19 +02:00
mode = 2;
}
];
};
2024-03-24 23:39:49 +01:00
2024-09-28 00:04:19 +02:00
winbar = {
lualine_a = [];
lualine_b = [];
lualine_c = [];
lualine_x = [];
lualine_y = [];
lualine_z = [];
};
};
2024-03-24 23:39:49 +01:00
};
};
};
}