mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-25 21:24:59 +02:00
plugins/lualine: support custom extensions
This commit is contained in:
parent
5241c9f83e
commit
e3f5796403
2 changed files with 13 additions and 2 deletions
|
@ -196,7 +196,7 @@ in
|
|||
inactiveWinbar = mkEmptySectionOption "Inactive Winbar configuration";
|
||||
|
||||
extensions = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
type = with lib.types; nullOr (listOf (either str (attrsOf anything)));
|
||||
default = null;
|
||||
example = ''[ "fzf" ]'';
|
||||
description = "list of enabled extensions";
|
||||
|
|
|
@ -111,7 +111,18 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
extensions = [ "nvim-tree" ];
|
||||
extensions = [
|
||||
"nvim-tree"
|
||||
{
|
||||
sections = {
|
||||
lualine_a = [ "filename" ];
|
||||
};
|
||||
inactive_sections = {
|
||||
lualine_x = [ "location" ];
|
||||
};
|
||||
filetypes = [ "markdown" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue