Skip to content

Commit

Permalink
fix: Inform user when hop isn't initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
smoka7 authored and yehuohan committed Apr 22, 2024
1 parent 61e22d3 commit 811250f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/hop/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@ end
---@param opts Options
---@param pattern string|nil
function M.hint_patterns(opts, pattern)
if not M.initialized then
vim.notify('Hop is not initialized; please call the setup function', vim.log.levels.ERROR)
return
end

local jump_regex = require('hop.jump_regex')

opts = override_opts(opts)
Expand Down

0 comments on commit 811250f

Please sign in to comment.