summaryrefslogtreecommitdiffstats
path: root/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/javascriptreact.vim5
-rw-r--r--after/ftplugin/typescriptreact.vim5
2 files changed, 10 insertions, 0 deletions
diff --git a/after/ftplugin/javascriptreact.vim b/after/ftplugin/javascriptreact.vim
new file mode 100644
index 00000000..e423f0ed
--- /dev/null
+++ b/after/ftplugin/javascriptreact.vim
@@ -0,0 +1,5 @@
+if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
+
+source <sfile>:h/javascript.vim
+
+endif
diff --git a/after/ftplugin/typescriptreact.vim b/after/ftplugin/typescriptreact.vim
new file mode 100644
index 00000000..931839b1
--- /dev/null
+++ b/after/ftplugin/typescriptreact.vim
@@ -0,0 +1,5 @@
+if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1)
+
+source <sfile>:h/typescript.vim
+
+endif