plugins/lualine: support custom extensions

This commit is contained in:
Austin Horstman 2024-09-01 00:09:18 -05:00
parent 5241c9f83e
commit e3f5796403
No known key found for this signature in database
2 changed files with 13 additions and 2 deletions

View file

@ -196,7 +196,7 @@ in
inactiveWinbar = mkEmptySectionOption "Inactive Winbar configuration"; inactiveWinbar = mkEmptySectionOption "Inactive Winbar configuration";
extensions = mkOption { extensions = mkOption {
type = types.nullOr (types.listOf types.str); type = with lib.types; nullOr (listOf (either str (attrsOf anything)));
default = null; default = null;
example = ''[ "fzf" ]''; example = ''[ "fzf" ]'';
description = "list of enabled extensions"; description = "list of enabled extensions";

View file

@ -111,7 +111,18 @@
} }
]; ];
}; };
extensions = [ "nvim-tree" ]; extensions = [
"nvim-tree"
{
sections = {
lualine_a = [ "filename" ];
};
inactive_sections = {
lualine_x = [ "location" ];
};
filetypes = [ "markdown" ];
}
];
}; };
}; };