mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
22 lines
380 B
Lua
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
|