windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.54k stars 85 forks source link

Does not auto tag when mapping in .astro file but works with .tsx #168

Closed JNer1 closed 2 months ago

JNer1 commented 4 months ago

When I type an element while mapping in a .astro file, the auto-tagging does not work.

In the example below, typing out the <li> inside the map method does not trigger the auto-tagging. However, this works fine in a .tsx file.

---
import Layout from "../layouts/Layout.astro";
import { publications } from "../publications";
---

<Layout title="Publications">
  <main class="mx-auto max-w-5xl p-8">
    <ul class="flex flex-col gap-4">
      {publications.map((pub) => <li>{pub.title}</li>)}
    </ul>
  </main>
</Layout>

Config

Neovim Version: v0.9.5 Package Manager: Lazy

return {
    "windwp/nvim-ts-autotag",
    opts = {
        enable_close_on_slash = false,
    },
}
PriceHiller commented 2 months ago

Hello, this should be resolved with the merging of #173.

I'll be closing this as a result. If you're still facing issues, please ping me and I'll reopen this.

Thanks 🙂