feat(filetype.lua): fix .cc file not detected

This commit is contained in:
rhcher
2022-01-09 16:49:37 +08:00
committed by Gregory Anders
parent 7a574e54f2
commit c38d602b88

View File

@@ -119,7 +119,13 @@ local extension = {
tcc = "cpp",
hxx = "cpp",
hpp = "cpp",
cpp = function()
cpp = function(path, bufnr)
if vim.g.cynlib_syntax_for_cc then
return "cynlib"
end
return "cpp"
end,
cc = function(path, bufnr)
if vim.g.cynlib_syntax_for_cc then
return "cynlib"
end