fix(hydra): return if gitsigns not loaded

This commit is contained in:
Price Hiller 2022-08-02 01:31:24 -05:00
parent 62b8bfda44
commit 07ca15843b

View File

@ -3,6 +3,11 @@ if not loaded then
return
end
local loaded, gitsigns = pcall(require, "gitsigns")
if not loaded then
return
end
-- Side Scroll
hydra({
name = "Side scroll",
@ -22,9 +27,6 @@ hydra({
},
})
-- Git Integration
local gitsigns = require("gitsigns")
local hint = [[
_J_: next hunk _s_: stage hunk _d_: show deleted _b_: blame line
_K_: prev hunk _u_: undo stage hunk _p_: preview hunk _B_: blame show full