From 1d5fa0afdc12c6687bb34abdd4fab82cb3c3b06b Mon Sep 17 00:00:00 2001 From: Pei Yang Ching Date: Sat, 6 Apr 2024 19:10:13 +0200 Subject: [PATCH] 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 --- modules/statusline/lualine/lualine.nix | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/modules/statusline/lualine/lualine.nix b/modules/statusline/lualine/lualine.nix index ac18fbd..7d1020f 100644 --- a/modules/statusline/lualine/lualine.nix +++ b/modules/statusline/lualine/lualine.nix @@ -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";