neoclide / coc-html

Html language server extension for coc.nvim.
207 stars 6 forks source link

Problems with xhtml #23

Closed hsequeda closed 3 years ago

hsequeda commented 3 years ago

I was trying to use the coc-html plugin with an xhtml file and it didn't work for me, I tried to add "xhtml" to the html.filetype variable in cocConfig, but nothing at all.

yaegassy commented 3 years ago

@stdevHsequeda

Add g:coc_filetype_map setting to your .vimrc or init.vim and try it out.

let g:coc_filetype_map = {
  \ 'xhtml': 'html',
  \ }
chemzqm commented 3 years ago

It's not designed to work with xhtml filetype, you have to use g:coc_filetype_map.