mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
feat(filetype.lua): fix .cc file not detected
This commit is contained in:
@@ -119,7 +119,13 @@ local extension = {
|
|||||||
tcc = "cpp",
|
tcc = "cpp",
|
||||||
hxx = "cpp",
|
hxx = "cpp",
|
||||||
hpp = "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
|
if vim.g.cynlib_syntax_for_cc then
|
||||||
return "cynlib"
|
return "cynlib"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user