diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-25 02:21:27 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-25 02:21:27 +0200 |
commit | 5147fbae236247d72fcb433f9a7fda9399ec1e3a (patch) | |
tree | a0d4b5b504b304b36c26e8daab07ec9ecb26bd2c | |
parent | 835b6034991abc8a80c90f60153a317ad1c8742d (diff) |
nvim: Force filetype for *.h files
-rw-r--r-- | .config/nvim/after/ftdetect/c.vim | 3 |
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 |