mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
commit
ee45f1f5a1
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
|
||||
})
|
||||
@ -236,6 +236,13 @@ packer.startup({
|
||||
|
||||
use({ "christoomey/vim-conflicted", requires = "tpope/vim-fugitive", cmd = {"Conflicted"}})
|
||||
|
||||
use {
|
||||
'ruifm/gitlinker.nvim',
|
||||
requires = 'nvim-lua/plenary.nvim',
|
||||
event = "User InGitRepo",
|
||||
config = [[require('config.git-linker')]]
|
||||
}
|
||||
|
||||
use({ "kevinhwang91/nvim-bqf", ft = "qf", config = [[require('config.bqf')]] })
|
||||
|
||||
-- Better git commit experience
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user