diff --git a/docs/manual/configuring/custom-plugins/configuring.md b/docs/manual/configuring/custom-plugins/configuring.md index 80ef03a4..71ce9b8f 100644 --- a/docs/manual/configuring/custom-plugins/configuring.md +++ b/docs/manual/configuring/custom-plugins/configuring.md @@ -11,8 +11,8 @@ be used if the plugin uses a `require('module').setup(...)` pattern. Otherwise, ```nix { config.vim.lazy.plugins = { - aerial.nvim = { - # ^^^^^^^^^ this name should match the package.pname or package.name + aerial-nvim = { + # ^^^^^^^^^ this name should match the package.pname or package.name package = aerial-nvim; setupModule = "aerial"; diff --git a/docs/manual/configuring/custom-plugins/lazy-method.md b/docs/manual/configuring/custom-plugins/lazy-method.md index c6fd7106..77b77d5d 100644 --- a/docs/manual/configuring/custom-plugins/lazy-method.md +++ b/docs/manual/configuring/custom-plugins/lazy-method.md @@ -6,9 +6,9 @@ As of version **0.7**, we exposed an API for configuring lazy-loaded plugins via ```nix { config.vim.lazy.plugins = { - "aerial.nvim" = { + aerial = { package = pkgs.vimPlugins.aerial-nvim; - setupModule = "aerial"; + setupModule = aerial; setupOpts = { option_name = true; }; diff --git a/modules/wrapper/lazy/lazy.nix b/modules/wrapper/lazy/lazy.nix index 2bbda27c..7ea943ef 100644 --- a/modules/wrapper/lazy/lazy.nix +++ b/modules/wrapper/lazy/lazy.nix @@ -62,7 +62,7 @@ }; setupOpts = mkOption { - type = attrsOf anything; + type = submodule {freeformType = attrsOf anything;}; description = "Options to pass to the setup function"; default = {}; };