You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Would be nice to have an option to automatically enable auto-centering when executing a move command, similar to the following mappings:
Describe the solution you'd like
Have an option such as autocenter = true/false inside the move submodule that would execute zz after each move... or maybe better, have a TreesitterTextObjMove autocmd to be able to execute zz in after each move?
The text was updated successfully, but these errors were encountered:
At the moment, i reset the binding in the config and use TS command directly .
It works great
map(
"n",
"]]",
":TSTextobjectGotoNextStart @function.outer | lua vim.cmd('norm zz') <CR>",
{ remap=true, desc="Go to next function and center the cursor" }
)
map(
"n",
"[[",
":TSTextobjectGotoPreviousStart @function.outer | lua vim.cmd('norm zz') <CR>",
{ remap=true, desc="Go to previous function and center the cursor" }
)
Is your feature request related to a problem? Please describe.
Would be nice to have an option to automatically enable auto-centering when executing a move command, similar to the following mappings:
Describe the solution you'd like
Have an option such as
autocenter = true/false
inside themove
submodule that would executezz
after each move... or maybe better, have aTreesitterTextObjMove
autocmd to be able to executezz
in after each move?The text was updated successfully, but these errors were encountered: