mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
add plugin gitlinkder.nvim
This commit is contained in:
14
lua/config/git-linker.lua
Normal file
14
lua/config/git-linker.lua
Normal file
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user