mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 13:30:17 +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;
|
||||
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