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>2018-11-05 14:28:33 -0800
commite889eaf97699833e88713696a2ea520217b58f84 (patch)
tree1bee30a930166d2a97fc8203a51e340d3364fa34 /ftdetect
parentf84a45f6f1332db9f7a0579214e76c207508f987 (diff)
downloadvim-prettier-e889eaf97699833e88713696a2ea520217b58f84.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