better snippets, language management
This commit is contained in:
parent
67406d2af0
commit
20b058f034
4 changed files with 26 additions and 108 deletions
19
lua/cp/languages.lua
Normal file
19
lua/cp/languages.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
local M = {}
|
||||
|
||||
M.CPP = "cpp"
|
||||
M.PYTHON = "python"
|
||||
|
||||
---@type table<string, string>
|
||||
M.filetype_to_language = {
|
||||
cc = M.CPP,
|
||||
cxx = M.CPP,
|
||||
cpp = M.CPP,
|
||||
c = M.CPP,
|
||||
py = M.PYTHON,
|
||||
py3 = M.PYTHON,
|
||||
}
|
||||
|
||||
---@type string[]
|
||||
M.all = { M.CPP, M.PYTHON }
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue