summaryrefslogtreecommitdiffstats
path: root/.config/nvim/langs.vim
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 13:22:31 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 13:22:31 +0100
commit66fbfab34ff74fad6e2da45b8fb02d2df3712bb9 (patch)
tree744a1bff446e8982e40a4dfd93161e73ae058ee8 /.config/nvim/langs.vim
parentRevert (diff)
downloaddotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.gz
dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.bz2
dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.xz
dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.zst
dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.zip
Fat update
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