Closed AdrienLemaire closed 3 years ago
i had a similar issue with .hbs
files, and fixed it by adding the following to my init.vim
autocmd BufEnter *.hbs :set ft=html
i couldn't get it to work with set ft=hbs
, adding hbs
to the coc_filetype_map
, and also adding hbs
to the filetypes in coc-settings.json
Same problem as @lippirk can we reopen this @chemzqm ?
same issue here and for that reason coc-snippets can't load htmldjango.snippets @chemzqm I add all the config above witch @AdrienLemaire mentioned, update NPM, adding coc-html config, g:coc_filetype_map. others suggestions pls
I am having the same problem. Cannot make twig files work using
let g:coc_filetype_map = {
\ ...
\ }
Only autocmd BufEnter *.html.twig :set ft=html
works
Am I doing something wrong, or is this a problem on the lib side?
Related: #4, #5
I would like the coc-html ipc to be started on .html files with filetype=htmldjango.
Expected:
would start coc-html on files with filetype = html or htmldjango
Currently: Only files with filetype=html are started.
is not a proper fix, because formatting an htmldjango file will ignore django template tags and format as if it was a regular html file.
Other plugins, like coc-tailwindcss, behave nicely. I couldn't figure out how coc plugins are getting started based on the filetype, so do not know a proper fix for this issue.