Adding gitlinker and updating whichkey
This commit is contained in:
37
lua/taken/plugins/gitlinker.lua
Normal file
37
lua/taken/plugins/gitlinker.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
return {
|
||||
"linrongbin16/gitlinker.nvim",
|
||||
cmd = {
|
||||
"GitLink",
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>gl",
|
||||
"<cmd>GitLink!<CR>",
|
||||
mode = { "v", "n" },
|
||||
desc = "Copies git link to highlighted code",
|
||||
},
|
||||
{
|
||||
"<leader>gL",
|
||||
"<cmd>GitLink<CR>",
|
||||
mode = { "v", "n" },
|
||||
desc = "Opens git link to highlighted code",
|
||||
},
|
||||
{
|
||||
"<leader>gb",
|
||||
"<cmd>GitLink! blame<CR>",
|
||||
mode = { "v", "n" },
|
||||
desc = "Copies git blame link to highlighted code",
|
||||
},
|
||||
{
|
||||
"<leader>gB",
|
||||
"<cmd>GitLink blame<CR>",
|
||||
mode = { "v", "n" },
|
||||
desc = "Opens git blame link to highlighted code",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local gitlinker = require("gitlinker")
|
||||
|
||||
gitlinker.setup()
|
||||
end,
|
||||
}
|
||||
@@ -42,6 +42,9 @@ return {
|
||||
t = {
|
||||
name = "toggle",
|
||||
},
|
||||
p = {
|
||||
name = "project",
|
||||
},
|
||||
v = {
|
||||
name = "lsp",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user