Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 813 Bytes

emmet_vim.rst

File metadata and controls

36 lines (24 loc) · 813 Bytes

localcfg/plugins/emmet_vim.vim

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