Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freemarker: coc-html overrides coc-snippets #6

Closed
caneta opened this issue Oct 29, 2019 · 2 comments
Closed

Freemarker: coc-html overrides coc-snippets #6

caneta opened this issue Oct 29, 2019 · 2 comments

Comments

@caneta
Copy link

caneta commented Oct 29, 2019

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
Copy link
Member

chemzqm commented Oct 29, 2019

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

@chemzqm chemzqm closed this as completed Oct 29, 2019
@caneta
Copy link
Author

caneta commented Oct 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants