1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00

Add PHP filetype in Emmet (#2858)

PHP is developed to be written inside HTML yet HTML tagging was not supported inside PHP files.
This commit is contained in:
Varun Batra 2019-05-31 18:26:03 +05:30 committed by Wang Shidong
parent 5f0dfcb2f0
commit 6e2f042127

View File

@ -23,7 +23,7 @@ function! SpaceVim#layers#lang#html#config() abort
let g:user_emmet_leader_key=get(g:, 'user_emmet_leader_key', '<C-e>') let g:user_emmet_leader_key=get(g:, 'user_emmet_leader_key', '<C-e>')
augroup spacevim_lang_html augroup spacevim_lang_html
autocmd! autocmd!
autocmd FileType html,css,scss,sass,less,javascript,jsp,vue,eex call s:install_emmet() autocmd FileType html,css,scss,sass,less,javascript,jsp,vue,eex,php call s:install_emmet()
autocmd Filetype html setlocal omnifunc=htmlcomplete#CompleteTags autocmd Filetype html setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
augroup END augroup END