From 07c7c296c8ff689f8723dcf2e4389345274b0b33 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 30 Aug 2020 21:46:08 +0200 Subject: [PATCH] Added some tweak for dev --- dotfiles/vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 = '>'