better snippets, language management

This commit is contained in:
Barrett Ruth 2025-09-15 12:22:07 -04:00
parent 67406d2af0
commit 20b058f034
4 changed files with 26 additions and 108 deletions

19
lua/cp/languages.lua Normal file
View 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