Skip to content
Discussion options

You must be logged in to vote

I am using this to have , behave normally when i am on a line with only whitespace characters got it working with jump_after_close and jump_before_open

how do i do it similarly for jump_after_tsnode and jump_before_tsnode

For behavior exactly like this - only to re-implement jump_*_tsnode steps, I am afraid.

The suggestion approach is to use increase_indent and decrease_indent steps to prefer indent manipulation if it is there is only whitespace to the left of the cursor. The setup looks something like this:

require('mini.keymap').setup()
local tab_steps = { 'vimsnippet_next', 'blink_next', 'increase_indent', 'jump_after_tsnode', 'jump_after_close' }
MiniKeymap.map_multistep('i', '<Tab>', 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.keymap
2 participants