mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 22:43:49 -05:00
Add tsx provider, closes #330
This commit is contained in:
21
after/ftplugin/tsx.vim
Normal file
21
after/ftplugin/tsx.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'tsx') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Vim ftplugin file
|
||||
"
|
||||
" Language: TSX (JavaScript)
|
||||
" Maintainer: Ian Ker-Seymer <i.kerseymer@gmail.com>
|
||||
" Depends: leafgarland/typescript-vim
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" modified from html.vim
|
||||
if exists("loaded_matchit")
|
||||
let b:match_ignorecase = 0
|
||||
let b:match_words = '(:),\[:\],{:},<:>,' .
|
||||
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
|
||||
endif
|
||||
|
||||
setlocal suffixesadd+=.tsx
|
||||
Reference in New Issue
Block a user