lualine: rename option disabledFiletypes

This commit is contained in:
Builditluc 2021-11-03 09:10:52 +01:00 committed by Pedro Alves
parent 396ed2a87f
commit e663c69032

View file

@ -57,7 +57,7 @@ in {
sectionSeparators = separators; sectionSeparators = separators;
componentSeparators = separators; componentSeparators = separators;
disabledFilestypes = mkOption { disabledFiletypes = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = [ ]; default = [ ];
example = ''[ "lua" ]''; example = ''[ "lua" ]'';
@ -67,7 +67,8 @@ in {
alwaysDivideMiddle = mkOption { alwaysDivideMiddle = mkOption {
type = types.bool; type = types.bool;
default = true; default = true;
description = "When true, left_sections (a,b,c) can't take over entire statusline"; description =
"When true, left_sections (a,b,c) can't take over entire statusline";
}; };
sections = mkOption { sections = mkOption {
@ -114,7 +115,7 @@ in {
theme = cfg.theme; theme = cfg.theme;
section_separators = cfg.sectionSeparators; section_separators = cfg.sectionSeparators;
component_separators = cfg.componentSeparators; component_separators = cfg.componentSeparators;
disabled_filestypes = cfg.disabledFilestypes; disabled_filetypes = cfg.disabledFiletypes;
always_divide_middle = cfg.alwaysDivideMiddle; always_divide_middle = cfg.alwaysDivideMiddle;
}; };
@ -125,7 +126,8 @@ in {
in mkIf cfg.enable { in mkIf cfg.enable {
programs.nixvim = { programs.nixvim = {
extraPlugins = [ pkgs.vimPlugins.lualine-nvim ]; extraPlugins = [ pkgs.vimPlugins.lualine-nvim ];
extraConfigLua = ''require("lualine").setup(${helpers.toLuaObject setupOptions})''; extraConfigLua =
''require("lualine").setup(${helpers.toLuaObject setupOptions})'';
}; };
}; };
} }