mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib/plugins/mk{Neovim,Vim}Plugin: add dependencies parameter
This commit is contained in:
parent
89c94d9ea7
commit
b66559d8ef
4 changed files with 24 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
|||
# - An option will be used as-is, but should be built using `lib.mkPackageOption`
|
||||
# Defaults to `name`, i.e. `pkgs.vimPlugins.${name}`
|
||||
package ? name,
|
||||
# Which dependencies to enable by default
|
||||
dependencies ? [ ],
|
||||
settingsOptions ? { },
|
||||
settingsExample ? null,
|
||||
settingsDescription ? "Options provided to the `require('${moduleName}')${setup}` function.",
|
||||
|
@ -105,6 +107,8 @@ let
|
|||
}
|
||||
))
|
||||
|
||||
(lib.nixvim.plugins.utils.enableDependencies dependencies)
|
||||
|
||||
# When lazy loading is enabled for this plugin, route its configuration to the enabled provider
|
||||
(lib.mkIf cfg.lazyLoad.enable {
|
||||
assertions = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue