jump_after_tsnode with non_blank condition #2132
-
Contributing guidelines
Module(s)mini.keymap QuestionI am using this to have , behave normally when i am on a line with only whitespace characters how do i do it similarly for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For behavior exactly like this - only to re-implement The suggestion approach is to use require('mini.keymap').setup()
local tab_steps = { 'vimsnippet_next', 'blink_next', 'increase_indent', 'jump_after_tsnode', 'jump_after_close' }
MiniKeymap.map_multistep('i', '<Tab>', tab_steps)
local stab_steps = { 'vimsnippet_prev', 'blink_prev', 'decrease_indent', 'jump_before_tsnode', 'jump_before_open' }
MiniKeymap.map_multistep('i', '<S-Tab>', stab_steps) |
Beta Was this translation helpful? Give feedback.
For behavior exactly like this - only to re-implement
jump_*_tsnodesteps, I am afraid.The suggestion approach is to use
increase_indentanddecrease_indentsteps to prefer indent manipulation if it is there is only whitespace to the left of the cursor. The setup looks something like this: