mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 05:24:22 +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}
|
||||
|
||||
[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):
|
||||
|
||||
- Renamed `setupOpts.strategies` to `setupOpts.interactions` in the
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ in {
|
|||
globalstatus = mkDefault cfg.globalStatus;
|
||||
refresh = mkDefault cfg.refresh;
|
||||
always_divide_middle = mkDefault cfg.alwaysDivideMiddle;
|
||||
ignore_focus = mkDefault cfg.ignoreFocus;
|
||||
disabled_filetypes = mkDefault cfg.disabledFiletypes;
|
||||
};
|
||||
|
||||
sections = {
|
||||
|
|
|
|||
|
|
@ -102,10 +102,17 @@ in {
|
|||
default = true;
|
||||
};
|
||||
|
||||
disabledFiletypes = mkOption {
|
||||
type = listOf str;
|
||||
description = "Filetypes to disable lualine on";
|
||||
default = ["alpha"];
|
||||
disabledFiletypes = {
|
||||
statusline = mkOption {
|
||||
type = listOf str;
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue