mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Add mapping for OpenGithubFile
This commit is contained in:
parent
c9fb1d91d3
commit
5078c097f8
1 changed files with 11 additions and 0 deletions
|
|
@ -1,4 +1,15 @@
|
|||
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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue