LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.42k stars 1.17k forks source link

timeoutlen = 100ms #15

Open w-r-z-k opened 2 years ago

w-r-z-k commented 2 years ago

Setting timeoutlen to 100 milliseconds in the options file makes it appears like the leader key is not working.

ghost commented 2 years ago

This is issue was mentioned in vim-which-key repo here

You can find solution here
https://vi.stackexchange.com/questions/3964/timeoutlen-breaks-leader-and-vim-commentary

tvdab commented 2 years ago

I experienced a similar problem with the vim fugitive plugin when timeoutlen was set to 100 milliseconds. The fugitive dd mapping to show a diff view did not work. Instead nvim interpreted this as a regular dd (delete line). Solved by setting timeoutlen to 300 milliseconds. Downside is that whichkey now takes longer to show up, but this is probably inevitable.

eclectic-coding commented 2 years ago

That is interesting... In all branches before 21-whichkey the timeoutlen to 1000 milliseconds and Leader works fine. There is probably a setting between 100-1000 that may work better.

CharlesChiuGit commented 2 years ago

I hope I saw this post sooner. I spent two days on debugging this...