mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
Compare commits
6 commits
22c105c08f
...
42592a25ed
Author | SHA1 | Date | |
---|---|---|---|
|
42592a25ed | ||
|
12b650fea7 | ||
|
c08d0a79cc | ||
|
a0281d329b | ||
|
cca14c7d29 | ||
|
c4e75c4c1a |
4 changed files with 10 additions and 9 deletions
|
@ -11,7 +11,7 @@ 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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -128,9 +128,10 @@ in {
|
||||||
# will return the configuration in full.
|
# will return the configuration in full.
|
||||||
passthru.neovimConfig = vimOptions;
|
passthru.neovimConfig = vimOptions;
|
||||||
|
|
||||||
meta = {
|
meta =
|
||||||
description = "Wrapped version of Neovim with additional helper scripts";
|
neovim-wrapped.meta
|
||||||
mainProgram = "nvim";
|
// {
|
||||||
|
description = "Wrapped Neovim package with helper scripts to print the config (path)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue