aboutsummaryrefslogtreecommitdiff
path: root/ftdetect
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-11-05 13:17:20 -0800
committermitermayer <mitermayer.reis@gmail.com>2019-08-25 21:14:06 -0700
commit2536a82999effdf6509df606795ed51404d204c9 (patch)
treed5e025aecf2448ead8c939255a1bae758f7ea92c /ftdetect
parent4177c919e7f7eb33855e118c4a85571af1bd9a42 (diff)
downloadvim-prettier-2536a82999effdf6509df606795ed51404d204c9.tar.xz
Rebasing vim-prettier plugin Pull Request 120 to 1.0 branch
This is a rebase of https://github.com/prettier/vim-prettier/pull/120/files
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/lua.vim1
-rw-r--r--ftdetect/php.vim1
-rw-r--r--ftdetect/python.vim1
-rw-r--r--ftdetect/swift.vim1
4 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/lua.vim b/ftdetect/lua.vim
new file mode 100644
index 0000000..b59148c
--- /dev/null
+++ b/ftdetect/lua.vim
@@ -0,0 +1 @@
+autocmd BufNewFile,BufReadPost *.lua setfiletype lua
diff --git a/ftdetect/php.vim b/ftdetect/php.vim
new file mode 100644
index 0000000..1e3236f
--- /dev/null
+++ b/ftdetect/php.vim
@@ -0,0 +1 @@
+autocmd BufNewFile,BufReadPost *.php setfiletype php
diff --git a/ftdetect/python.vim b/ftdetect/python.vim
new file mode 100644
index 0000000..a33fa5d
--- /dev/null
+++ b/ftdetect/python.vim
@@ -0,0 +1 @@
+autocmd BufNewFile,BufReadPost *.python setfiletype python
diff --git a/ftdetect/swift.vim b/ftdetect/swift.vim
new file mode 100644
index 0000000..af59e95
--- /dev/null
+++ b/ftdetect/swift.vim
@@ -0,0 +1 @@
+autocmd BufNewFile,BufReadPost *.swift setfiletype swift