mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.39k stars 411 forks source link

Small bug in autocomplete after variable #555

Open dgagn opened 1 year ago

dgagn commented 1 year ago

Okay, so it's a weird bug and nothing trivial, but would be nice if it was fixed.

  const helloWorld = div|

It will expand to :

  const helloWorld <div>|</div>

It removes the equal signs, which is not expected.

mattn commented 1 year ago

What is your filetype?

dgagn commented 1 year ago

What is your filetype?

javscriptreact and it also does it with typescriptreact

mattn commented 1 year ago

Which plugin do you use for javscriptreact/typescriptreact ?

dgagn commented 1 year ago

Which plugin do you use for javscriptreact/typescriptreact ?

I reproduced the bug with only the emmet-vim plugin Screenshot 2023-07-13 at 11 37 06 AM

Screenshot 2023-07-13 at 11 37 18 AM

dgagn commented 1 year ago

It also does it with :

  const hello = () => div.container|
  const hello <div className="container"></div>