Skip to content

Commit 4553214

Browse files
committed
fix: git linker lazy loading
1 parent 5bea450 commit 4553214

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

lazy_lua_modules/gitlinker.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
local lze = require("lze")
2-
3-
lze.load({
4-
"gitlinker.nvim",
1+
require("lze").load({
2+
"gitlinker-nvim",
3+
on_require = { "gitlinker" },
54
keys = {
65
{ "<leader>gy", desc = "Git Linker" },
76
},
7+
load = function(name)
8+
vim.cmd("packadd " .. name)
9+
end,
810
after = function()
911
require("gitlinker").setup()
12+
vim.api.nvim_set_keymap("n", "<leader>gy", "<cmd>GitLink<cr>", { desc = "Yank git link" })
13+
vim.api.nvim_set_keymap("v", "<leader>gy", "<cmd>GitLink<cr>", { desc = "Yank git link" })
1014
end,
1115
})

0 commit comments

Comments
 (0)