Compare commits

..

6 commits

Author SHA1 Message Date
Ching Pei Yang
42592a25ed
Merge 7f5c33605d into 12b650fea7 2024-11-10 23:50:45 +01: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
diniamo
c4e75c4c1a wrapper: get meta from wrapped neovim package 2024-11-10 15:05:45 +03:00
4 changed files with 10 additions and 9 deletions

View file

@ -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;

View file

@ -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;
};

View file

@ -128,9 +128,10 @@ in {
# will return the configuration in full.
passthru.neovimConfig = vimOptions;
meta = {
description = "Wrapped version of Neovim with additional helper scripts";
mainProgram = "nvim";
meta =
neovim-wrapped.meta
// {
description = "Wrapped Neovim package with helper scripts to print the config (path)";
};
};
}

View file

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