feat(lualine): add options for ignored filetypes in statusline and winbar

This commit is contained in:
ErinaYip 2026-05-08 23:16:32 +08:00
commit d69f328ddf
No known key found for this signature in database
3 changed files with 20 additions and 4 deletions

View file

@ -120,6 +120,13 @@
## Changelog {#sec-release-0-9-changelog} ## Changelog {#sec-release-0-9-changelog}
[ErinaYip](https://github.com/ErinaYip):
- Added separate `disabledFiletypes.statusline` and `disabledFiletypes.winbar`
options in the lualine module, allowing users to configure which filetypes
should disable lualine for each component independently. Also exposed
`ignoreFocus` option.
[SecBear](https://github.com/SecBear): [SecBear](https://github.com/SecBear):
- Renamed `setupOpts.strategies` to `setupOpts.interactions` in the - Renamed `setupOpts.strategies` to `setupOpts.interactions` in the

View file

@ -68,6 +68,8 @@ in {
globalstatus = mkDefault cfg.globalStatus; globalstatus = mkDefault cfg.globalStatus;
refresh = mkDefault cfg.refresh; refresh = mkDefault cfg.refresh;
always_divide_middle = mkDefault cfg.alwaysDivideMiddle; always_divide_middle = mkDefault cfg.alwaysDivideMiddle;
ignore_focus = mkDefault cfg.ignoreFocus;
disabled_filetypes = mkDefault cfg.disabledFiletypes;
}; };
sections = { sections = {

View file

@ -102,10 +102,17 @@ in {
default = true; default = true;
}; };
disabledFiletypes = mkOption { disabledFiletypes = {
type = listOf str; statusline = mkOption {
description = "Filetypes to disable lualine on"; type = listOf str;
default = ["alpha"]; default = ["alpha"];
description = "Filetypes to disable lualine on for statusline";
};
winbar = mkOption {
type = listOf str;
default = [];
description = "Filetypes to disable lualine on for winbar";
};
}; };
ignoreFocus = mkOption { ignoreFocus = mkOption {