1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-26 20:21:03 +01:00
nixvim/tests/test-sources/plugins/by-name/gitportal/default.nix
Matt Sturgeon 824e048096 tests/fetch-tests: only apply required args
Using `functionArgs` and `intersectAttrs`, apply only the required args
to test module files.
2025-11-24 11:09:51 +00:00

33 lines
704 B
Nix

{ lib }:
{
empty = {
plugins.gitportal.enable = true;
};
defaults = {
plugins.gitportal = {
enable = true;
settings = {
always_include_current_line = false;
always_use_commit_hash_in_url = false;
browser_command = lib.nixvim.mkRaw "nil";
default_remote = "origin";
git_provider_map = lib.nixvim.mkRaw "nil";
switch_branch_or_commit_upon_ingestion = "always";
};
};
};
example = {
plugins.gitportal = {
enable = true;
settings = {
always_include_current_line = true;
default_remote = "upstream";
switch_branch_or_commit_upon_ingestion = "ask_first";
};
};
};
}