mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add yq
This commit is contained in:
parent
1144fa8698
commit
1e3fe17dd7
2 changed files with 13 additions and 9 deletions
|
@ -46,6 +46,7 @@ let
|
|||
websocat.default = "websocat";
|
||||
which.default = "which";
|
||||
yazi.default = "yazi";
|
||||
yq.default = "yq";
|
||||
zk.default = "zk";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "papis";
|
||||
packPathName = "papis.nvim";
|
||||
|
@ -7,15 +7,18 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
# papis.nvim is an nvim-cmp source too
|
||||
imports = [ { cmpSourcePlugins.papis = "papis"; } ];
|
||||
imports = [
|
||||
{ cmpSourcePlugins.papis = "papis"; }
|
||||
|
||||
extraOptions = {
|
||||
yqPackage = lib.mkPackageOption pkgs "yq" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.yqPackage ];
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "yq";
|
||||
packageName = "yq";
|
||||
})
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
dependencies.yq.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
settingsOptions = import ./settings-options.nix lib;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue