mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-22 14:43:55 +00:00
feat(lualine): add options for ignored filetypes in statusline and winbar
This commit is contained in:
parent
88dbbad1f4
commit
f3c25ab998
2 changed files with 13 additions and 4 deletions
|
|
@ -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