Giter Club home page Giter Club logo

accelerated-jk.nvim's People

Contributors

rainbowhxch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mtimkovich

accelerated-jk.nvim's Issues

Feature: Acceleration support for all motion

As the document mentioned, this plugin only supports four motions: j, k, gj, gk.

But for most of (Neo)Vim users, there are many others motions been used such as e, b, etc. Even some custom commands, for example, I use <C-J> to scroll down 5 lines.

I have read the source code, I noticed that just need to change a piece of code, it can support other motions. See pic below:

image

After that, I can accelarate my e and b now!

image

It's better be a feature request, but I can only open an issue here, sorry for it.

how to use 16ba344?

It's my config

require("accelerated-jk").setup({
	mode = "time_driven",
	acceleration_motions = { "h", "l", "e", "b" },
	acceleration_limit = 150,
	-- acceleration_table = { 0 },
	acceleration_table = { 7, 12, 17, 21, 24, 26, 28, 30 },
	-- when 'enable_deceleration = true', 'deceleration_table = { {200, 3}, {300, 7}, {450, 11}, {600, 15}, {750, 21}, {900, 9999} }'
	enable_deceleration = false,
	deceleration_table = { { 150, 9999 } },
})

but my nmap is not "h, l, e ,b". It's only following:

:nmap

n <Plug>(accelerated_jk_gk) * <Cmd>lua require'accelerated-jk'.move_to('gk')<CR>
n <Plug>(accelerated_jk_gj) * <Cmd>lua require'accelerated-jk'.move_to('gj')<CR>
n <Plug>(accelerated_jk_k) * <Cmd>lua require'accelerated-jk'.move_to('k')<CR>
n <Plug>(accelerated_jk_j) * <Cmd>lua require'accelerated-jk'.move_to('j')<CR>

not others <Plug>(accelerated_jk... * <Cmd>lua require'accelerated-jk'.move_to(...) <CR>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.