1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-24 14:39:48 +01:00

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"
then "#181825"
else "none";
tempDesc = "see plugin docs for more info";
in {
options.vim.statusline.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"];
};
};
};
setupOpts = mkPluginSetupOption "Lualine" {};
enable = mkEnableOption "lualine statusline plugin";