1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

more mapping and doc update for gitlinker

This commit is contained in:
jdhao
2022-09-25 23:39:33 +08:00
parent 773003b71b
commit 5ecb74ad85
2 changed files with 12 additions and 0 deletions

View File

@@ -13,3 +13,13 @@ keymap.set({ "n", "v" }, "<leader>gl", "", {
gitlinker.get_buf_range_url(mode)
end,
})
keymap.set("n", "<leader>gb", "", {
silent = true,
desc = "browse repo in browser",
callback = function()
gitlinker.get_repo_url({
action_callback = gitlinker.actions.open_in_browser
})
end
})