neoclide / coc-html

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

Freemarker: coc-html overrides coc-snippets #6

Closed caneta closed 4 years ago

caneta commented 4 years ago

Hi. I've succesfully installed coc-snippets, which I use for my freemarker templates:

snippets-freemarker After that, I've installed coc-html and configured it to use in my templates:

let g:coc_filetype_map = {
\ 'freemarker': 'html',
\ }

But that has overridden my snippets, only html autocompletion is now active:

html-freemarker Am I missing some other configuration to have both autocomplete suggestions? Thank you.

chemzqm commented 4 years ago

Use snippets.extends https://github.com/neoclide/coc-snippets and remove that filetype map.

caneta commented 4 years ago

That worked like a charm, thanks @chemzqm! I've removed the filetype map and added the following to my ~/.config/nvim/coc-settings.json: {"snippets.extends":{"freemarker":["html"]}}; here the result:

both