From 028c877c57480f02b6eabc2325a31906aa669c3f Mon Sep 17 00:00:00 2001 From: Seong Yong-ju Date: Tue, 12 Dec 2017 01:10:54 +0900 Subject: [PATCH] Improve Emmet configuration * Use JSX Emmet presets for Javascript --- autoload/SpaceVim/layers/edit.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim/layers/edit.vim b/autoload/SpaceVim/layers/edit.vim index 8d73a74fe..55dfc718e 100644 --- a/autoload/SpaceVim/layers/edit.vim +++ b/autoload/SpaceVim/layers/edit.vim @@ -38,10 +38,14 @@ function! SpaceVim#layers#edit#config() abort let g:user_emmet_leader_key=get(g:, 'user_emmet_leader_key', '') let g:user_emmet_mode='a' let g:user_emmet_settings = { - \ 'jsp' : { - \ 'extends' : 'html', - \ }, - \} + \ 'javascript': { + \ 'extends': 'jsx', + \ }, + \ 'jsp' : { + \ 'extends': 'html', + \ }, + \ } + "noremap (wildfire-fuel) vnoremap (wildfire-water) let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it']