diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 482149d..764123d 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -28,6 +28,8 @@ call plug#begin('~/.vim/plugged') \} Plug 'JamshedVesuna/vim-markdown-preview' Plug 'ternjs/tern_for_vim', {'do': 'yarn install'} + Plug 'alvan/vim-closetag' + Plug 'psykidellic/vim-jekyll' " Initialize plugin system call plug#end() @@ -136,3 +138,16 @@ let g:ale_fix_on_save = 1 " vim-javascript let g:javascript_plugin_jsdoc = 1 " Enables syntax highlighting for JSDocs let g:javascript_plugin_flow = 1 " Enables syntax highlighting for Flow + +" vim-closetag +let g:closetag_filenames = '*.html,*.xhtml,*.phtml' +let g:closetag_xhtml_filenames = '*.xhtml,*.jsx, *.ejs' +let g:closetag_filetypes = 'html,xhtml,phtml' +let g:closetag_xhtml_filetypes = 'xhtml,jsx' +let g:closetag_emptyTags_caseSensitive = 1 +let g:closetag_regions = { + \ 'typescript.tsx': 'jsxRegion,tsxRegion', + \ 'javascript.jsx': 'jsxRegion', + \ } +let g:closetag_shortcut = '>' +let g:closetag_close_shortcut = '>'