aboutsummaryrefslogtreecommitdiffstats
path: root/nvim
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-11-25 05:14:27 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-11-25 05:14:27 +0100
commit565f9d9e52df93c936c0608912723e240ccab6b2 (patch)
tree3ada3e650fc43309c791f34011d3fe6906f47bc7 /nvim
parent36e9acea42b35f62d77eb05ee987a468c6fa87d4 (diff)
downloaddotfiles-565f9d9e52df93c936c0608912723e240ccab6b2.tar.xz
nvim/init: Move *.h filetype setting to filetype.vim
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nvim')
-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