mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/octo: use ghPackage
This commit is contained in:
parent
4d460d6151
commit
dfea178590
2 changed files with 18 additions and 2 deletions
|
@ -12,8 +12,6 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ helpers.maintainers.svl ];
|
||||
|
||||
extraPackages = [ pkgs.gh ];
|
||||
|
||||
settingsOptions = {
|
||||
use_local_fs = helpers.defaultNullOpts.mkBool false ''
|
||||
Use local files on right side of reviews.
|
||||
|
@ -167,9 +165,17 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
|||
};
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
ghPackage = lib.mkPackageOption pkgs "GitHub CLI" {
|
||||
default = "gh";
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig =
|
||||
cfg:
|
||||
mkMerge [
|
||||
{ extraPackages = [ cfg.ghPackage ]; }
|
||||
(mkIf (cfg.settings.picker == null || cfg.settings.picker == "telescope") {
|
||||
plugins.telescope.enable = mkDefault true;
|
||||
})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
empty = {
|
||||
# This test is flaky and fails non-deterministically
|
||||
|
@ -84,4 +85,13 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
# Need to add gh executable to runtime path for plugin
|
||||
test.runNvim = false;
|
||||
plugins.octo = {
|
||||
enable = true;
|
||||
ghPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue