remove sub-options for lualine.setupOpts

Having users to use setupOpts for lualine would suck since lualine uses
the `{"module", option = value} lua syntax heavily and we don't have a
good syntax for that
This commit is contained in:
Pei Yang Ching 2024-04-06 19:10:13 +02:00
parent 87e8732461
commit 1d5fa0afdc

View file

@ -14,28 +14,9 @@
if config.vim.statusline.lualine.theme == "catppuccin" if config.vim.statusline.lualine.theme == "catppuccin"
then "#181825" then "#181825"
else "none"; else "none";
tempDesc = "see plugin docs for more info";
in { in {
options.vim.statusline.lualine = { options.vim.statusline.lualine = {
setupOpts = mkPluginSetupOption "Lualine" { setupOpts = mkPluginSetupOption "Lualine" {};
options = {
disabled_filetypes = mkOption {
description = tempDesc;
type = listOf str;
default = ["alpha"];
};
always_divide_middle = mkOption {
description = tempDesc;
type = bool;
default = true;
};
ignore_focus = mkOption {
description = tempDesc;
type = listOf str;
default = ["NvimTree"];
};
};
};
enable = mkEnableOption "lualine statusline plugin"; enable = mkEnableOption "lualine statusline plugin";