neoclide / coc-emmet

Emmet extension for coc.nvim
178 stars 9 forks source link

Inside of tag instead of in between tags #31

Closed void-m4110c closed 3 years ago

void-m4110c commented 3 years ago

Hi, I when I insert li I get autocompletion and can select <li></li> from emmet snippets.

However, when I accept the selection my cursor _ is in this position: <l_i></li> . (Inside the first tag element between l and i.

What could be the issue here?

void-m4110c commented 3 years ago

Nevermind, it seems that 'andymass/vim-matchup' is the culprit. When I disable it, emmet works fine again. Sorry for the noise.

void-m4110c commented 3 years ago

In case someone comes here with the same problem:

You have to enable the following variable in .vimrc or init.vim:

let g:matchup_matchparen_deferred = 1

Then vim-matchup will play nicely with coc-emmet.