mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +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
|
@ -41,13 +41,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
inherit settingsOptions settingsExample;
|
||||
|
||||
extraOptions = {
|
||||
fzfPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
fzfPackage = helpers.mkPackageOption {
|
||||
name = "fzf";
|
||||
default = pkgs.fzf;
|
||||
description = ''
|
||||
The fzf package to use.
|
||||
Set to `null` to not install any package.
|
||||
'';
|
||||
example = pkgs.skim;
|
||||
};
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -30,10 +30,8 @@ in
|
|||
|
||||
package = helpers.mkPluginPackageOption "todo-comments" pkgs.vimPlugins.todo-comments-nvim;
|
||||
|
||||
ripgrepPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
ripgrepPackage = helpers.mkPackageOption {
|
||||
default = pkgs.ripgrep;
|
||||
example = null;
|
||||
description = "Which package (if any) to be added for file search support in todo-comments.";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue