diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-25 23:39:33 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-09-25 23:39:33 +0800 |
| commit | 5ecb74ad85e424ed0d75a32b0e3a3e62c58c13ab (patch) | |
| tree | 17d54fa839a7a61a97d702c5d7be97d0a3e8f431 /lua/config | |
| parent | 773003b71b1c0d141e94a290431affddcfa40814 (diff) | |
more mapping and doc update for gitlinker
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/git-linker.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/git-linker.lua b/lua/config/git-linker.lua index e2f7607..e19f0a8 100644 --- a/lua/config/git-linker.lua +++ b/lua/config/git-linker.lua @@ -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 +}) |
