summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/ftdetect/c.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/after/ftdetect/c.vim b/.config/nvim/after/ftdetect/c.vim
index 4d22e22..c92c21e 100644
--- a/.config/nvim/after/ftdetect/c.vim
+++ b/.config/nvim/after/ftdetect/c.vim
@@ -1 +1,2 @@
-autocmd BufRead,BufNewFile *.[ch] setfiletype c
+" Vim by default sets *.h files to be cpp, so we need to explicitly override that
+autocmd BufRead,BufNewFile *.h set filetype=c