fix(hydra): return if gitsigns not loaded
This commit is contained in:
parent
62b8bfda44
commit
07ca15843b
@ -3,6 +3,11 @@ if not loaded then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local loaded, gitsigns = pcall(require, "gitsigns")
|
||||||
|
if not loaded then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Side Scroll
|
-- Side Scroll
|
||||||
hydra({
|
hydra({
|
||||||
name = "Side scroll",
|
name = "Side scroll",
|
||||||
@ -22,9 +27,6 @@ hydra({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Git Integration
|
|
||||||
local gitsigns = require("gitsigns")
|
|
||||||
|
|
||||||
local hint = [[
|
local hint = [[
|
||||||
_J_: next hunk _s_: stage hunk _d_: show deleted _b_: blame line
|
_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
|
_K_: prev hunk _u_: undo stage hunk _p_: preview hunk _B_: blame show full
|
||||||
|
Loading…
Reference in New Issue
Block a user