aboutsummaryrefslogtreecommitdiff
path: root/.vim/filetype.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/filetype.vim')
-rw-r--r--.vim/filetype.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/.vim/filetype.vim b/.vim/filetype.vim
index c29f97e..dce60b7 100644
--- a/.vim/filetype.vim
+++ b/.vim/filetype.vim
@@ -1,8 +1,16 @@
+if exists('did_load_filetypes')
+ finish
+endif
+
augroup filetypedetect
autocmd BufRead,BufNewFile *.org setfiletype org
autocmd BufRead,BufNewFile *nginx.conf setfiletype nginx
autocmd BufRead,BufNewFile /etc/nginx*.conf setfiletype nginx
autocmd BufRead,BufNewFile *mutt-* setfiletype mail
+
+ autocmd BufRead,BufNewFile .vimspector.json
+ \ setfiletype vimspector
+ \ | setlocal syntax=json
augroup end
autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab