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
I noticed that 'end' is only unindented after RET is hit. As such, the situation above happens to me a lot.
This is somewhat bothersome, especially in evil-mode, where I very often will not return after finishing a block like this.
This is implemented in lua-mode via electric-indent-mode, which has electric-indent-chars configuration variable which is a list that by default has only ?\n (newline). lua-mode adds some characters after which it is almost certain that a line's indentation is going to change (}, ], )).
Do you have some specific characters in mind that would help in your use case?
Activity
immerrr commentedon Apr 13, 2021
This is implemented in lua-mode via
electric-indent-mode, which haselectric-indent-charsconfiguration variable which is a list that by default has only?\n(newline). lua-mode adds some characters after which it is almost certain that a line's indentation is going to change (},],)).Do you have some specific characters in mind that would help in your use case?
iajrz commentedon Apr 18, 2021
I found this, which might help: https://github.com/Malabarba/aggressive-indent-mode