mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 09:44:37 +02:00
lib/options: introduce new mkPackageOption for dependencies
This commit is contained in:
parent
26367692da
commit
7c4fe30f81
15 changed files with 51 additions and 85 deletions
|
@ -246,8 +246,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
replaceDefaultPackage = replacePackages.${toString userCommandSettings.replace.cmd} or null;
|
||||
in
|
||||
{
|
||||
findPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
findPackage = helpers.mkPackageOption {
|
||||
default = findDefaultPackage;
|
||||
description = ''
|
||||
Which package to install for the find command.
|
||||
|
@ -257,8 +256,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
'';
|
||||
};
|
||||
|
||||
replacePackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
replacePackage = helpers.mkPackageOption {
|
||||
default = replaceDefaultPackage;
|
||||
description = ''
|
||||
Which package to install for the find command.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue