Skip to content

Commit

Permalink
feat(openingh-nvim): added mappings to copy url (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayJameson committed Jan 23, 2024
1 parent 2a9f741 commit 149ab9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/astrocommunity/git/openingh-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ return {
cmd = { "OpenInGHRepo", "OpenInGHFile", "OpenInGHFileLines" },
keys = {
{ prefix .. "o", "<cmd>OpenInGHRepo<CR>", desc = "Open git repo in web", mode = { "n" } },
{ prefix .. "O", "<cmd>OpenInGHRepo+<CR>", desc = "Copy git repo url", mode = { "n" } },
{ prefix .. "f", "<cmd>OpenInGHFile<CR>", desc = "Open git file in web", mode = { "n" } },
{ prefix .. "F", "<cmd>OpenInGHFile+<CR>", desc = "Copy git file url", mode = { "n" } },
{ prefix .. "f", "<cmd>OpenInGHFileLines<CR>", desc = "Open git lines in web", mode = { "x" } },
{ prefix .. "F", "<cmd>OpenInGHFileLines+<CR>", desc = "Copy git lines url", mode = { "x" } },
},
}

0 comments on commit 149ab9c

Please sign in to comment.