summaryrefslogtreecommitdiffstats
path: root/after/ftplugin/tsx.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-08 13:03:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-08 13:03:32 +0200
commit0217fb50fe40a631cc220462520249e36dbc919a (patch)
tree804a36631e33f021c81660de57b38c67bac5b237 /after/ftplugin/tsx.vim
parent5023da62ecb8a008a9dc67b29516ac707f07f3a0 (diff)
downloadvim-polyglot-0217fb50fe40a631cc220462520249e36dbc919a.tar.gz
vim-polyglot-0217fb50fe40a631cc220462520249e36dbc919a.zip
Add tsx provider, closes #330
Diffstat (limited to 'after/ftplugin/tsx.vim')
-rw-r--r--after/ftplugin/tsx.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/after/ftplugin/tsx.vim b/after/ftplugin/tsx.vim
new file mode 100644
index 00000000..62112bba
--- /dev/null
+++ b/after/ftplugin/tsx.vim
@@ -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