remove the filetype overwrite to c
I don't think it does much
This commit is contained in:
@@ -73,16 +73,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user