mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 21:46:32 +00:00
feat(lualine): add options for ignored filetypes in statusline and winbar
This commit is contained in:
parent
88dbbad1f4
commit
d69f328ddf
3 changed files with 20 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue