diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-05 00:48:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-05 00:48:57 +0800 |
| commit | ee45f1f5a14ebb4c54d31b3fbf0d8086b4d08b89 (patch) | |
| tree | 51108e05665edd9f9b76350be65959e460915a13 /lua/config | |
| parent | 17acda10a0b32bc22a56c3a1995bbe48287b768d (diff) | |
| parent | 43660dd540773b318ba13552a39ee781ed51b239 (diff) | |
Merge pull request #88 from jdhao/gitlinker
add plugin gitlinkder.nvim
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/git-linker.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/config/git-linker.lua b/lua/config/git-linker.lua new file mode 100644 index 0000000..72ae3f6 --- /dev/null +++ b/lua/config/git-linker.lua @@ -0,0 +1,14 @@ +local gitlinker = require('gitlinker') + +gitlinker.setup({ + mappings = nil, +}) + +vim.keymap.set({ 'n', 'v' }, '<leader>gl', '', { + silent = true, + desc = "get git permlink", + callback = function() + local mode = string.lower(vim.fn.mode()) + gitlinker.get_buf_range_url(mode) + end +}) |
