Skip to content

Indenting when pasting text #176

@ivangeorgiew

Description

@ivangeorgiew

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions