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

allow disabling prompt for cmdheight=0 #296

Closed jemag closed 1 year ago

jemag commented 2 years ago

Is there a way to disable the prompt?

Currently with cmdheight=0, this will will make using sneak a bit painful since you will get an enter confirmation every time you trigger it : image

Using an empty prompt:

vim.g["sneak#prompt"] = ''

will still trigger the prompt, but just remove the > character.

justinmk commented 2 years ago

PR welcome to change the behavior for vim.g["sneak#prompt"] = 'NONE'