From b4de3442532f68a58a9b472203f749a69cbb1efe Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 7 Oct 2024 01:56:29 +0300 Subject: [PATCH] cinnamon-nvim: get rid of submodule in setupOpts --- .../plugins/visuals/cinnamon-nvim/cinnamon-nvim.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/plugins/visuals/cinnamon-nvim/cinnamon-nvim.nix b/modules/plugins/visuals/cinnamon-nvim/cinnamon-nvim.nix index 1d3ee7f..109b06f 100644 --- a/modules/plugins/visuals/cinnamon-nvim/cinnamon-nvim.nix +++ b/modules/plugins/visuals/cinnamon-nvim/cinnamon-nvim.nix @@ -1,7 +1,7 @@ {lib, ...}: let inherit (lib.modules) mkRemovedOptionModule; inherit (lib.options) mkOption mkEnableOption; - inherit (lib.types) submodule attrs; + inherit (lib.types) submodule attrs attrsOf; inherit (lib.nvim.types) mkPluginSetupOption; in { imports = [ @@ -26,12 +26,9 @@ in { description = "Scroll options"; }; - keymaps = mkOption { - description = "Keymap options for Cinnamon. Please see documentation before enablg"; - type = submodule { - basic = mkEnableOption "basic animation keymaps"; - extra = mkEnableOption "extra animation keymaps"; - }; + keymaps = { + basic = mkEnableOption "basic animation keymaps"; + extra = mkEnableOption "extra animation keymaps"; }; }; };