aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nvim/filetype.vim1
-rw-r--r--nvim/init.vim6
2 files changed, 1 insertions, 6 deletions
diff --git a/nvim/filetype.vim b/nvim/filetype.vim
index 9b5f5f3..d9d6196 100644
--- a/nvim/filetype.vim
+++ b/nvim/filetype.vim
@@ -1,5 +1,6 @@
augroup filetypedetect
" Mail
autocmd BufRead,BufNewFile *mutt-* setfiletype mail
+ autocmd BufRead,BufNewFile *.h setfiletype c
au BufReadPost PKGBUILD set syntax=PKGBUILD
augroup END
diff --git a/nvim/init.vim b/nvim/init.vim
index 4f2f73a..06b8478 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -160,12 +160,6 @@ autocmd BufWinLeave * call clearmatches()
-" Why does vim set the filetype of .h files as C++?
-augroup filetypes
- autocmd!
- autocmd BufRead,BufNewFile *.h set filetype=c
-augroup END
-
augroup indentation
autocmd!
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 noet