Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Colors of tags in tsx file are messed up after inserting new tag #149

@doubleChu

Description

@doubleChu

Describe the bug

Colors of tags look good after opening a file, but if I insert new tags in a tsx file, the color of its tags wouble be messed up.

Steps to reproduce

code:

export default function App(){
  return (
    <div className={style.App}>
      <h1>Hello There<h1>
    </div>
  )
}

type "<h2>Test</h2>" in the same level as <h1>
if I type :set filetype=typescriptreact or disable & enable TS highlight it would be refreshed and looks fine.
The behavior is also not correct in jsx file, but in html file it is fine.

I have installed nvim-ts-autotag, is that plugin result in the problem?

Expected behavior

The correct tags color

Screenshots

Now:
image
Expect:
image

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