summaryrefslogtreecommitdiffstats
path: root/.config/nvim/langs.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/langs.vim')
-rw-r--r--.config/nvim/langs.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/langs.vim b/.config/nvim/langs.vim
index cc441cd..26b96d7 100644
--- a/.config/nvim/langs.vim
+++ b/.config/nvim/langs.vim
@@ -1,5 +1,13 @@
let g:asmsyntax = 'asm'
let perl_include_pod = 1
+autocmd BufNewFile,BufRead *.h
+ \ set filetype=c
+autocmd BufNewFile,BufRead *.c
+ \ set filetype=c
+autocmd BufNewFile,BufRead *.cxx
+ \ set filetype=cpp
+autocmd BufNewFile,BufRead *.hxx
+ \ set filetype=cpp
autocmd FileType fish
\ compiler fish
autocmd FileType perl