forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
filetype.vim
40 lines (32 loc) · 1.71 KB
/
filetype.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
" File-type Detection
" ===
if exists('did_load_filetypes')
finish
endif
augroup filetypedetect "{{{
autocmd BufNewFile,BufRead */.config/git/users/* setfiletype gitconfig
autocmd BufNewFile,BufRead */playbooks/*.{yml,yaml} setfiletype yaml.ansible
autocmd BufNewFile,BufRead */inventory/* setfiletype ansible_hosts
" autocmd BufNewFile,BufRead */templates/*.{yaml,tpl} setfiletype yaml.gotexttmpl
autocmd BufNewFile,BufRead *.hcl setfiletype hcl
autocmd BufRead,BufNewFile *.tf,*.tfvars setfiletype terraform
autocmd BufNewFile,BufRead go.mod setfiletype gomod
autocmd BufNewFile,BufRead go.sum setfiletype go
autocmd BufNewFile,BufRead yarn.lock setfiletype yaml
autocmd BufNewFile,BufRead */.kube/config setfiletype yaml
autocmd BufNewFile,BufRead *.postman_collection setfiletype json
autocmd BufNewFile,BufRead .tern-{project,port} setfiletype json
autocmd BufNewFile,BufRead *.js.map setfiletype json
autocmd BufNewFile,BufRead .jsbeautifyrc setfiletype json
autocmd BufNewFile,BufRead .eslintrc setfiletype json
autocmd BufNewFile,BufRead .jscsrc setfiletype json
autocmd BufNewFile,BufRead .babelrc setfiletype json
autocmd BufNewFile,BufRead .watchmanconfig setfiletype json
autocmd BufNewFile,BufRead .buckconfig setfiletype toml
autocmd BufNewFile,BufRead .flowconfig setfiletype ini
autocmd BufNewFile,BufRead Jenkinsfile* setfiletype groovy
autocmd BufNewFile,BufRead Tmuxfile,tmux/config setfiletype tmux
autocmd BufNewFile,BufRead Brewfile setfiletype ruby
augroup END
" }}}
" vim: set foldmethod=marker ts=2 sw=2 tw=80 noet :