summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftdetect/c.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftdetect/c.lua')
-rw-r--r--.config/nvim/after/ftdetect/c.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/after/ftdetect/c.lua b/.config/nvim/after/ftdetect/c.lua
new file mode 100644
index 0000000..a518a11
--- /dev/null
+++ b/.config/nvim/after/ftdetect/c.lua
@@ -0,0 +1,6 @@
+vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
+ pattern = '*.[ch]',
+ callback = function()
+ vim.bo.filetype = 'c'
+ end,
+})