Compare commits

..

5 commits

Author SHA1 Message Date
raf
469e3be017
Merge 12b650fea7 into 8997e62b3b 2024-11-10 22:50:14 +00:00
Ching Pei Yang
12b650fea7 lazy: remove redundant submodule 2024-11-11 01:50:11 +03:00
Ching Pei Yang
c08d0a79cc docs: cleanup formatting 2024-11-10 23:38:22 +03:00
Ching Pei Yang
a0281d329b another mistake
name should match package.pname
2024-11-10 23:38:22 +03:00
Ching Pei Yang
cca14c7d29 docs: fix typo 2024-11-10 23:38:22 +03:00
3 changed files with 5 additions and 5 deletions

View file

@ -11,8 +11,8 @@ be used if the plugin uses a `require('module').setup(...)` pattern. Otherwise,
```nix ```nix
{ {
config.vim.lazy.plugins = { config.vim.lazy.plugins = {
aerial-nvim = { 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; package = aerial-nvim;
setupModule = "aerial"; setupModule = "aerial";

View file

@ -6,9 +6,9 @@ As of version **0.7**, we exposed an API for configuring lazy-loaded plugins via
```nix ```nix
{ {
config.vim.lazy.plugins = { config.vim.lazy.plugins = {
aerial = { "aerial.nvim" = {
package = pkgs.vimPlugins.aerial-nvim; package = pkgs.vimPlugins.aerial-nvim;
setupModule = aerial; setupModule = "aerial";
setupOpts = { setupOpts = {
option_name = true; option_name = true;
}; };

View file

@ -62,7 +62,7 @@
}; };
setupOpts = mkOption { setupOpts = mkOption {
type = submodule {freeformType = attrsOf anything;}; type = attrsOf anything;
description = "Options to pass to the setup function"; description = "Options to pass to the setup function";
default = {}; default = {};
}; };