diff --git a/lua/taken/plugins/gitlinker.lua b/lua/taken/plugins/gitlinker.lua new file mode 100644 index 0000000..80c168c --- /dev/null +++ b/lua/taken/plugins/gitlinker.lua @@ -0,0 +1,37 @@ +return { + "linrongbin16/gitlinker.nvim", + cmd = { + "GitLink", + }, + keys = { + { + "gl", + "GitLink!", + mode = { "v", "n" }, + desc = "Copies git link to highlighted code", + }, + { + "gL", + "GitLink", + mode = { "v", "n" }, + desc = "Opens git link to highlighted code", + }, + { + "gb", + "GitLink! blame", + mode = { "v", "n" }, + desc = "Copies git blame link to highlighted code", + }, + { + "gB", + "GitLink blame", + mode = { "v", "n" }, + desc = "Opens git blame link to highlighted code", + }, + }, + config = function() + local gitlinker = require("gitlinker") + + gitlinker.setup() + end, +} diff --git a/lua/taken/plugins/whichkey.lua b/lua/taken/plugins/whichkey.lua index b0e27e6..bfa35b6 100644 --- a/lua/taken/plugins/whichkey.lua +++ b/lua/taken/plugins/whichkey.lua @@ -42,6 +42,9 @@ return { t = { name = "toggle", }, + p = { + name = "project", + }, v = { name = "lsp", },