New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<cmd> hack to not move the cursor for new pairs #394
Conversation
I AM SORRY FOR ALL THE ISSUES I MADE USING RECURSIVE MAPPING |
i forget about it too. |
sure |
this is a solution for the issue i pointed here
#393 (comment)
the way i fixed this is by adding a command
ReservedAutopairsJumptbackpairs
which positions the cursor in the correct place after custom pairswhich could also be added as a hotkey for jumping back to the position of the last pair (i don't think anyone needs that tho)
i also removed recursive mapping from my last pr (sorry for the trouble)
the commits are a mix of the old pr commits and this pr's commits as i couldn't fork twice (i am new to prs and i forgot to the delete the last fork)
and there is a test failing on line 82 of test_utils.lua because i used
nvim_win_set_cursor
and conflicts because i removed recursive mapping from my last pr