From cca14c7d2990c011793f2a02a627d424ff1b649f Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 10 Nov 2024 19:55:34 +0100 Subject: [PATCH 1/4] docs: fix typo --- docs/manual/configuring/custom-plugins/lazy-method.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual/configuring/custom-plugins/lazy-method.md b/docs/manual/configuring/custom-plugins/lazy-method.md index 77b77d5d..3ca0756f 100644 --- a/docs/manual/configuring/custom-plugins/lazy-method.md +++ b/docs/manual/configuring/custom-plugins/lazy-method.md @@ -8,7 +8,7 @@ As of version **0.7**, we exposed an API for configuring lazy-loaded plugins via config.vim.lazy.plugins = { aerial = { package = pkgs.vimPlugins.aerial-nvim; - setupModule = aerial; + setupModule = "aerial"; setupOpts = { option_name = true; }; From a0281d329b82930fd794d3eb80390b694d65b25a Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 10 Nov 2024 19:57:55 +0100 Subject: [PATCH 2/4] another mistake name should match package.pname --- docs/manual/configuring/custom-plugins/configuring.md | 2 +- docs/manual/configuring/custom-plugins/lazy-method.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual/configuring/custom-plugins/configuring.md b/docs/manual/configuring/custom-plugins/configuring.md index 71ce9b8f..ce29163a 100644 --- a/docs/manual/configuring/custom-plugins/configuring.md +++ b/docs/manual/configuring/custom-plugins/configuring.md @@ -11,7 +11,7 @@ be used if the plugin uses a `require('module').setup(...)` pattern. Otherwise, ```nix { config.vim.lazy.plugins = { - aerial-nvim = { + aerial.nvim = { # ^^^^^^^^^ this name should match the package.pname or package.name package = aerial-nvim; diff --git a/docs/manual/configuring/custom-plugins/lazy-method.md b/docs/manual/configuring/custom-plugins/lazy-method.md index 3ca0756f..c6fd7106 100644 --- a/docs/manual/configuring/custom-plugins/lazy-method.md +++ b/docs/manual/configuring/custom-plugins/lazy-method.md @@ -6,7 +6,7 @@ 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"; setupOpts = { From c08d0a79ccf86171221616643329897099c6118c Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 10 Nov 2024 20:48:43 +0100 Subject: [PATCH 3/4] docs: cleanup formatting --- docs/manual/configuring/custom-plugins/configuring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual/configuring/custom-plugins/configuring.md b/docs/manual/configuring/custom-plugins/configuring.md index ce29163a..80ef03a4 100644 --- a/docs/manual/configuring/custom-plugins/configuring.md +++ b/docs/manual/configuring/custom-plugins/configuring.md @@ -12,7 +12,7 @@ be used if the plugin uses a `require('module').setup(...)` pattern. Otherwise, { config.vim.lazy.plugins = { aerial.nvim = { - # ^^^^^^^^^ this name should match the package.pname or package.name + # ^^^^^^^^^ this name should match the package.pname or package.name package = aerial-nvim; setupModule = "aerial"; From 12b650fea7bddcdf9773f3b6f831c59c7b660a75 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 10 Nov 2024 23:40:23 +0100 Subject: [PATCH 4/4] lazy: remove redundant submodule --- modules/wrapper/lazy/lazy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}; };