From 2c5b4c9308090681609664efc135397ba9061f3e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 15 Feb 2024 06:42:26 +0800 Subject: [PATCH] nixvim/plugins: fix modules --- modules/nixvim/plugins/firenvim.nix | 4 +++- modules/nixvim/plugins/legendary-nvim.nix | 2 +- modules/nixvim/plugins/smart-splits.nix | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/nixvim/plugins/firenvim.nix b/modules/nixvim/plugins/firenvim.nix index d087d962..81420d51 100644 --- a/modules/nixvim/plugins/firenvim.nix +++ b/modules/nixvim/plugins/firenvim.nix @@ -7,7 +7,9 @@ in options.plugins.firenvim = { enable = lib.mkEnableOption "Firenvim"; package = helpers.mkPackageOption "firenvim" pkgs.vimPlugins.firenvim; - settings = helpers.mkSettingsOption { + settings = lib.mkOption { + type = with lib.types; attrsOf anything; + default = { }; description = '' Extra configuration options for Firenvim. ''; diff --git a/modules/nixvim/plugins/legendary-nvim.nix b/modules/nixvim/plugins/legendary-nvim.nix index b006b0dd..53efdb7c 100644 --- a/modules/nixvim/plugins/legendary-nvim.nix +++ b/modules/nixvim/plugins/legendary-nvim.nix @@ -24,7 +24,7 @@ in settings = lib.mkOption { type = lib.types.submodule { - freefromType = with lib.types; attrsOf anything; + freeformType = with lib.types; attrsOf anything; config = lib.mkMerge [ (lib.mkIf diff --git a/modules/nixvim/plugins/smart-splits.nix b/modules/nixvim/plugins/smart-splits.nix index 455f7bed..26ab799a 100644 --- a/modules/nixvim/plugins/smart-splits.nix +++ b/modules/nixvim/plugins/smart-splits.nix @@ -9,7 +9,9 @@ in package = helpers.mkPackageOption "smart-splits.nvim" pkgs.vimPlugins.smart-splits-nvim; - settings = helpers.mkSettingsOption { + settings = lib.mkOption { + type = with lib.types; attrsOf anything; + default = { }; description = '' Configuration to be passed as argument to `setup` function of the plugin.