better snippets, language management
This commit is contained in:
parent
67406d2af0
commit
20b058f034
4 changed files with 26 additions and 108 deletions
|
|
@ -8,14 +8,8 @@
|
|||
local M = {}
|
||||
local logger = require("cp.log")
|
||||
|
||||
local filetype_to_language = {
|
||||
cpp = "cpp",
|
||||
cxx = "cpp",
|
||||
cc = "cpp",
|
||||
c = "cpp",
|
||||
py = "python",
|
||||
py3 = "python",
|
||||
}
|
||||
local languages = require("cp.languages")
|
||||
local filetype_to_language = languages.filetype_to_language
|
||||
|
||||
---@param source_file string
|
||||
---@param contest_config table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue