mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
feat(filetype.lua): fix .cc file not detected
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user