mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/gitlinker: init
This commit is contained in:
parent
be14bc1b91
commit
a13638c0e8
3 changed files with 151 additions and 0 deletions
31
tests/test-sources/plugins/git/gitlinker.nix
Normal file
31
tests/test-sources/plugins/git/gitlinker.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.gitlinker.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.gitlinker = {
|
||||
enable = true;
|
||||
|
||||
remote = null;
|
||||
addCurrentLineOnNormalMode = true;
|
||||
actionCallback = "copy_to_clipboard";
|
||||
printUrl = true;
|
||||
mappings = "<leader>gy";
|
||||
|
||||
callbacks = {
|
||||
"github.com" = "get_github_type_url";
|
||||
"gitlab.com" = "get_gitlab_type_url";
|
||||
"try.gitea.io" = "get_gitea_type_url";
|
||||
"codeberg.org" = "get_gitea_type_url";
|
||||
"bitbucket.org" = "get_bitbucket_type_url";
|
||||
"try.gogs.io" = "get_gogs_type_url";
|
||||
"git.sr.ht" = "get_srht_type_url";
|
||||
"git.launchpad.net" = "get_launchpad_type_url";
|
||||
"repo.or.cz" = "get_repoorcz_type_url";
|
||||
"git.kernel.org" = "get_cgit_type_url";
|
||||
"git.savannah.gnu.org" = "get_cgit_type_url";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue