mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-21 17:59:41 +01:00
plugins/gitportal: init
This commit is contained in:
parent
d5b0cacdfb
commit
3bef8b6784
2 changed files with 48 additions and 0 deletions
33
tests/test-sources/plugins/by-name/gitportal/default.nix
Normal file
33
tests/test-sources/plugins/by-name/gitportal/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue