Skip to content

Commit

Permalink
fix(openingh-nvim): more precise lazy loading with "cmd" and "keys" (#…
Browse files Browse the repository at this point in the history
…527)

chore(openingh-nvim): more precise lazy loading with "cmd" and "keys"
  • Loading branch information
RayJameson authored and Uzaaft committed Aug 29, 2023
1 parent 6e913de commit f663252
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/astrocommunity/git/openingh-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
local prefix = "<leader>g"
return {
"almo7aya/openingh.nvim",
event = "User AstroGitFile",
cmd = { "OpenInGHRepo", "OpenInGHFile", "OpenInGHFileLines" },
keys = {
{ prefix .. "o", "<cmd>OpenInGHRepo<CR>", desc = "Open git repo in web", mode = { "n" } },
{ prefix .. "f", "<cmd>OpenInGHFile<CR>", desc = "Open git file in web", mode = { "n" } },
{ prefix .. "f", "<cmd>OpenInGHFileLines<CR>", desc = "Open git lines in web", mode = { "x" } },
},
}

0 comments on commit f663252

Please sign in to comment.