Skip to content

Commit

Permalink
add the doc for option g:closetag_regions
Browse files Browse the repository at this point in the history
  • Loading branch information
alvan committed Feb 14, 2019
1 parent fbcd62b commit 6f62493
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,15 @@ Set in your vimrc:
"
let g:closetag_emptyTags_caseSensitive = 1


" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ }

" Shortcut for closing tags, default is '>'
"
let g:closetag_shortcut = '>'
Expand Down
2 changes: 1 addition & 1 deletion plugin/closetag.vim
Expand Up @@ -21,7 +21,7 @@ fun! s:Initial()
call s:Declare('g:closetag_emptyTags_caseSensitive', 0)

call s:Declare('g:closetag_regions', {
\ 'typescript.tsx': 'jsxRegion',
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ })

Expand Down

0 comments on commit 6f62493

Please sign in to comment.