windwp / nvim-ts-autotag

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

Not working with Tags that have `.` in the middle #138

Closed howarddo2208 closed 8 months ago

howarddo2208 commented 11 months ago

I'm using styled-components and it's not working with those tags, as in the video below

https://github.com/windwp/nvim-ts-autotag/assets/62332195/e162a4e9-33be-4e65-a23c-3586e0cfe7d6

amirhhashemi commented 11 months ago

I have the same problem with framer-motion and it's really annoying:

import { motion } from "framer-motion"

const Component = () => {
  return <motion.div></motion.div> // not working here
}
singlexyz commented 10 months ago

You can use 'surround' way.

howarddo2208 commented 10 months ago

You can use 'surround' way.

Yeah, it's a workaround for that. But I think there should be an update for this use case.

amirhhashemi commented 8 months ago

Looks like it's been fixed in the latest version.

howarddo2208 commented 8 months ago

Looks like it's been fixed in the latest version.

yeah, I will close the issue for now.