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
When I try to paste and format text from a function, the indentation is wrong. However when I paste the text and then manually indent, it is correct.
This only occurs for xml text, everything else is indented correctly.
I tried echoing the results of the functions inside after/indent which decide if the indentation should be xml or js and they showed that the result's syntax groups missed '^xml' or '^jsx'
Therefore I believe the issue is from the syntax groups not being set immediately after the paste.
How can this be fixed?
The text was updated successfully, but these errors were encountered:
For anyone else experiencing this annoying issue - you have to make use :syn sync maxlines=(the number of lines between the beginning and the ending line of the paste)
and then reindent the pasted text.
When I try to paste and format text from a function, the indentation is wrong. However when I paste the text and then manually indent, it is correct.
This only occurs for xml text, everything else is indented correctly.
I tried echoing the results of the functions inside
after/indent
which decide if the indentation should be xml or js and they showed that the result's syntax groups missed'^xml'
or'^jsx'
Therefore I believe the issue is from the syntax groups not being set immediately after the paste.
How can this be fixed?
The text was updated successfully, but these errors were encountered: