mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
15 lines
413 B
Lua
15 lines
413 B
Lua
return {
|
|
"tyru/open-browser-github.vim",
|
|
dependencies = { { "tyru/open-browser.vim" } },
|
|
config = function()
|
|
local map = LazyVim.safe_keymap_set
|
|
|
|
map("n", "<leader>of", function()
|
|
vim.cmd("OpenGithubFile")
|
|
end, { desc = "Open Github file" })
|
|
|
|
map("v", "<leader>of", function()
|
|
vim.api.nvim_command("'<,'>OpenGithubFile")
|
|
end, { desc = "Open Github file (visual)" })
|
|
end,
|
|
}
|