[nvim] add Emmet support in Jinja/Jinja2/Nunjucks templates

This commit is contained in:
Dmytro Meleshko 2019-11-03 17:01:32 +02:00
parent c7b24f9ee6
commit 313be3691a

View file

@ -1,4 +1,6 @@
if !g:vim_ide | finish | endif if !g:vim_ide | finish | endif
call coc#add_extension('coc-html', 'coc-emmet') call coc#add_extension('coc-html', 'coc-emmet')
let g:coc_filetypes += ['html'] let s:emmet_filetype_mapping = { 'jinja': 'html' }
let g:coc_filetypes += ['html'] + keys(s:emmet_filetype_mapping)
call coc#config('emmet.includeLanguages', s:emmet_filetype_mapping)