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
Justin edited this page Jun 10, 2024
·
7 revisions
Troubleshooting
For the times when parinfer-rust-mode needs your guidance.
Escape Hatch/ Evil Support
Is parinfer misbehaving in smart-mode? This could be due to a bug or because some commands(evil) are just plain weird. parinfer-rust-treat-command-as is an escape hatch for smart mode that allows you to tell parinfer-rust-mode what mode to run a specific command. parinfer-rust-treat-command-as is a list of pairs. The first item in the pair specifies the command and the second item in the pair specifies the mode the command should be run under. For example (yank . "paren"), tells parinfer-rust-mode to override smart mode and run under paren mode when it detects that yank caused a change in the buffer.
You can extend to parinfer-rust-treat-command-as using add-to-list as shown below:
This is caused by vundo locking the buffer as read-only while you are going through the undo-tree. The fix here would be to use vundo's hooks to turn parinfer-rust-mode off and on as necessary.