1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/lua/spacevim/api/language.lua
2024-06-09 10:37:42 +08:00

22 lines
380 B
Lua

local M = {}
M.__aliases = {
typescript = 'TypeScript',
typescriptreact = 'TypeScript React',
python = 'Python',
java = 'Java',
smalltalk = 'SmallTalk',
objc = 'Objective-C',
postscript = 'PostScript',
}
function M.get_alias(ft)
if ft and ft ~= '' and M.__aliases[ft] then
return M.__aliases[ft]
else
return ft
end
end
return M