m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.35k stars 27 forks source link

hardtime ignores keys mapped to hjkl #79

Closed flexagoon closed 4 months ago

flexagoon commented 5 months ago

Describe the bug If I remap some key to h/j/k/l, hardtime doesn't restrict that key

Config options Default config

To Reproduce

  1. :nnoremap <Down> j
  2. Try to spam the down arrow

Expected behavior The down arrow is treated as the "j" key and is restricted by hardtime

m4xshen commented 5 months ago

@flexagoon did you try mapping key like this https://github.com/m4xshen/hardtime.nvim/issues/31#issuecomment-1685762701 ?

declancm commented 4 months ago

You can use :nmap <down> j to use the existing j mapping