summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-25 02:21:27 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-25 02:21:27 +0200
commit5147fbae236247d72fcb433f9a7fda9399ec1e3a (patch)
treea0d4b5b504b304b36c26e8daab07ec9ecb26bd2c /.config/nvim
parent835b6034991abc8a80c90f60153a317ad1c8742d (diff)
nvim: Force filetype for *.h files
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