mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
docs: fix github link branch (#1300)
Nixvim uses "main" rather than "master".
This commit is contained in:
parent
80a2244afc
commit
da7c6c41ef
1 changed files with 4 additions and 4 deletions
|
@ -19,8 +19,8 @@
|
|||
|
||||
nixvimPath = toString ./..;
|
||||
|
||||
gitHubDeclaration = user: repo: subpath: {
|
||||
url = "https://github.com/${user}/${repo}/blob/master/${subpath}";
|
||||
gitHubDeclaration = user: repo: branch: subpath: {
|
||||
url = "https://github.com/${user}/${repo}/blob/${branch}/${subpath}";
|
||||
name = "<${repo}/${subpath}>";
|
||||
};
|
||||
|
||||
|
@ -32,10 +32,10 @@
|
|||
decl:
|
||||
if lib.hasPrefix nixvimPath (toString decl)
|
||||
then
|
||||
gitHubDeclaration "nix-community" "nixvim"
|
||||
gitHubDeclaration "nix-community" "nixvim" "main"
|
||||
(lib.removePrefix "/" (lib.removePrefix nixvimPath (toString decl)))
|
||||
else if decl == "lib/modules.nix"
|
||||
then gitHubDeclaration "NixOS" "nixpkgs" decl
|
||||
then gitHubDeclaration "NixOS" "nixpkgs" "master" decl
|
||||
else decl
|
||||
)
|
||||
opt.declarations;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue