Revert "remove the filetype overwrite to c"

This reverts commit 110480ea3f.
This commit is contained in:
Ivar Fatland
2025-10-03 20:44:45 +02:00
parent 6eb6afbd76
commit e8e94ac5d0
+10
View File
@@ -71,6 +71,16 @@ vim.cmd [[
set wildignore=*.o,*.obj,.git/**,tags,*.pyc set wildignore=*.o,*.obj,.git/**,tags,*.pyc
]] ]]
vim.api.nvim_create_autocmd({
'BufRead',
'BufNewFile'
}, {
pattern = {'*.h'},
callback = function()
vim.bo.filetype = 'c'
end
})
local function has_makefile() local function has_makefile()
local dir = io.popen('ls') local dir = io.popen('ls')
if not dir then return false end if not dir then return false end