Autoindent snippets after insertion

Asked by Judson

One thing I'm finding irritating (mostly about Javascript indent support...) is having to re-align snippets after adjusting my indent settings. Is there support in Ultisnips for applying indent to the just-added text, maybe just after insertion? If not, what method does US use to insert a snippet, and might there be an autocmd event that's triggered?

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

No - there is no support for that. It would be very difficult to pull off due to the way UltiSnips need to diff all changes in the buffer since Vim does not expose a history of the editing actions.

Can you help with this problem?

Provide an answer of your own, or ask Judson for more information if necessary.

To post a message you must log in.