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";
|
websocat.default = "websocat";
|
||||||
which.default = "which";
|
which.default = "which";
|
||||||
yazi.default = "yazi";
|
yazi.default = "yazi";
|
||||||
|
yq.default = "yq";
|
||||||
zk.default = "zk";
|
zk.default = "zk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue