diff --git a/lua/hydra/init.lua b/lua/hydra/init.lua index d3586be..f0f2d39 100644 --- a/lua/hydra/init.lua +++ b/lua/hydra/init.lua @@ -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, @@ -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