diff --git a/docs/manual/configuring/custom-plugins/configuring.md b/docs/manual/configuring/custom-plugins/configuring.md index 71ce9b8f..80ef03a4 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 77b77d5d..c6fd7106 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 = { + "aerial.nvim" = { 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 7ea943ef..2bbda27c 100644 --- a/modules/wrapper/lazy/lazy.nix +++ b/modules/wrapper/lazy/lazy.nix @@ -62,7 +62,7 @@ }; setupOpts = mkOption { - type = submodule {freeformType = attrsOf anything;}; + type = attrsOf anything; description = "Options to pass to the setup function"; default = {}; };