modules/dependencies: add yq

This commit is contained in:
Gaetan Lepage 2025-04-07 23:13:42 +02:00 committed by nix-infra-bot
parent 1144fa8698
commit 1e3fe17dd7
2 changed files with 13 additions and 9 deletions

View file

@ -46,6 +46,7 @@ let
websocat.default = "websocat"; websocat.default = "websocat";
which.default = "which"; which.default = "which";
yazi.default = "yazi"; yazi.default = "yazi";
yq.default = "yq";
zk.default = "zk"; zk.default = "zk";
}; };

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin { lib.nixvim.plugins.mkNeovimPlugin {
name = "papis"; name = "papis";
packPathName = "papis.nvim"; packPathName = "papis.nvim";
@ -7,15 +7,18 @@ lib.nixvim.plugins.mkNeovimPlugin {
maintainers = [ lib.maintainers.GaetanLepage ]; maintainers = [ lib.maintainers.GaetanLepage ];
# papis.nvim is an nvim-cmp source too # papis.nvim is an nvim-cmp source too
imports = [ { cmpSourcePlugins.papis = "papis"; } ]; imports = [
{ cmpSourcePlugins.papis = "papis"; }
extraOptions = { # TODO: added 2025-04-07, remove after 25.05
yqPackage = lib.mkPackageOption pkgs "yq" { (lib.nixvim.mkRemovedPackageOptionModule {
nullable = true; plugin = "yq";
}; packageName = "yq";
}; })
extraConfig = cfg: { ];
extraPackages = [ cfg.yqPackage ];
extraConfig = {
dependencies.yq.enable = lib.mkDefault true;
}; };
settingsOptions = import ./settings-options.nix lib; settingsOptions = import ./settings-options.nix lib;