justinmk / vim-sneak

The missing motion for Vim :athletic_shoe:
http://www.vim.org/scripts/script.php?script_id=4809
MIT License
3.26k stars 88 forks source link

sneak-clever-s not working #262

Closed jtrees closed 4 years ago

jtrees commented 4 years ago

I have the following line in my config but "clever s" still isn't working for some reason:

let g:sneak#s_next = 1

Any ideas?

[Neovim v0.4.3]

justinmk commented 4 years ago

works for me, and is covered by the test suite. check your mappings, bisect your plugins (remove other plugins to see if that fixes the issue, this helps narrow down the cause)

LambdaP commented 3 years ago

Hi. I’m dropping by because I had the same issue and found that the answer to my problem was counter-intuitive (to me at least). As I understand it, g:sneak#s_next needs to be set before sneak#init() is called, because what actually matters is the value of sneak#opt.s_next that is set in this function. A consequence is that if you set g:sneak#s_next in eg ./config/nvim/after/plugin/vim-sneak.vim then sneak will behave like g:sneak#s_next was set to 0.

This probably deserves a mention in the documentation?