localcfg/plugins/emmet_vim.vim

Enforce vim script implementation to reduce ambiguities and improve robustness:

scriptversion 4

Enable omnicompletion:

const g:user_emmet_complete_tag = v:true

Don’t create global maps:

const g:user_emmet_install_global = v:false

Override locale:

let g:user_emmet_settings = #{
\   variables: #{
\       locale: substitute(v:lang, '\(.*\)_\([^\.]*\)\(\..*\)\?',
\                          '\1-\2', '')
\   },
\ }

Treat jinja as HTML:

let g:user_emmet_settings.htmljinja = #{extends: 'html'}

Enable automatically where it will be useful:

if has('autocmd')
    augroup jnrowe_emmet
        autocmd!
        autocmd FileType css,html,xml,xslt EmmetInstall
    augroup END
endif