Skip to content

Commit

Permalink
fix: check config.hint first (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
b0ae989c authored Feb 5, 2024
1 parent eb68396 commit 1ce9ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/hydra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function Hydra:_setup_pink_hydra()
on_enter = {
function()
_G.Hydra = self
if not self.config.hint.hide_on_load then
if self.config.hint and not self.config.hint.hide_on_load then
self.hint:show()
end
end,
Expand Down Expand Up @@ -466,7 +466,7 @@ function Hydra:_enter()

if self.config.on_enter then self.config.on_enter() end

if not self.config.hint.hide_on_load then
if self.config.hint and not self.config.hint.hide_on_load then
self.hint:show()
end
end
Expand Down

0 comments on commit 1ce9ee3

Please sign in to comment.