neoclide / coc-html

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

Unable to enable client for different ft #5

Closed JeanMertz closed 4 years ago

JeanMertz commented 4 years ago

I added the Vim-Jinja2-Syntax plugin which dynamically sets ft to jinja.html for templated HTML files.

I also added "html.filetypes": ["html", "jinja.html"] to my coc-settings.json, but the coc-html plugin is not enabled when opening a foo.html file with ft=jinja.html.

chemzqm commented 4 years ago

You have to use g:coc_filetype_map

JeanMertz commented 4 years ago

Ah yes, sorry for missing that. Thank you 👍