nixvim/plugins: fix modules

This commit is contained in:
Gabriel Arazas 2024-02-15 06:42:26 +08:00
parent 72ce52a9ee
commit 2c5b4c9308
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,9 @@ in
options.plugins.firenvim = { options.plugins.firenvim = {
enable = lib.mkEnableOption "Firenvim"; enable = lib.mkEnableOption "Firenvim";
package = helpers.mkPackageOption "firenvim" pkgs.vimPlugins.firenvim; package = helpers.mkPackageOption "firenvim" pkgs.vimPlugins.firenvim;
settings = helpers.mkSettingsOption { settings = lib.mkOption {
type = with lib.types; attrsOf anything;
default = { };
description = '' description = ''
Extra configuration options for Firenvim. Extra configuration options for Firenvim.
''; '';

View File

@ -24,7 +24,7 @@ in
settings = lib.mkOption { settings = lib.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
freefromType = with lib.types; attrsOf anything; freeformType = with lib.types; attrsOf anything;
config = lib.mkMerge [ config = lib.mkMerge [
(lib.mkIf (lib.mkIf

View File

@ -9,7 +9,9 @@ in
package = helpers.mkPackageOption "smart-splits.nvim" pkgs.vimPlugins.smart-splits-nvim; 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 = '' description = ''
Configuration to be passed as argument to `setup` function of the Configuration to be passed as argument to `setup` function of the
plugin. plugin.