Home

Awesome

accelerated-jk

You can find more details in rhysd/accelerated-jk. I just write it in lua and currently only implemented time_driven

Usage

by default

require('accelerated-jk').setup {
  -- equal to
  -- nmap <silent> j <cmd>lua require'accelerated-jk'.command('gj')<cr>
  -- nmap <silent> k <cmd>lua require'accelerated-jk'.command('gk')<cr>
  mappings = { j = 'gj', k = 'gk' },
  -- If the interval of key-repeat takes more than `acceleration_limit` ms, the step is reset
  acceleration_limit = 150,
  -- acceleration steps
  acceleration_table = { 7, 12, 17, 21, 24, 26, 28, 30 },
  -- If you want to decelerate a cursor moving by time instead of reset. set it
  -- exampe:
  -- {
  --   { 200, 3 },
  --   { 300, 7 },
  --   { 450, 11 },
  --   { 600, 15 },
  --   { 750, 21 },
  --   { 900, 9999 },
  -- }
  deceleration_table = { { 150, 9999 } },
}

for more details see accelerated-jk.txt