hadronized / hop.nvim

Neovim motions on speed!
Other
2.47k stars 137 forks source link

How can I configure hop to use mixed-case labels? #348

Closed glvno closed 1 year ago

glvno commented 1 year ago

Hello!

I could have sworn I figured out how to do this a long time ago, but I can't seem to find the config file I did it in.

I'd like to be able to have hop resort to using uppercase characters after it runs out of lowercase characters, and then only resort to multi-character labels when it runs out of uppercase characters.

I tried

use {
        'phaazon/hop.nvim',
        branch = 'v2', -- optional but strongly recommended
        config = function()
            -- you can configure Hop the way you like here; see :h hop-config
            require('hop').setup { keys = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' }
        end
    }

With no luck. Apologies if the solution is already documented -- i could have sworn it was! -- but I haven't been able to find it.

Thanks for all your hard work on this wonderful plugin.

glvno commented 1 year ago

Welp, this is embarrassing. Works fine now.