From 0217fb50fe40a631cc220462520249e36dbc919a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 8 Jun 2019 13:03:18 +0200 Subject: Add tsx provider, closes #330 --- after/ftplugin/tsx.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 after/ftplugin/tsx.vim (limited to 'after/ftplugin') 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 +" 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 -- cgit v1.2.3