Merge branch 'main' into feat/epsilon-float-comparison

This commit is contained in:
Barrett Ruth 2026-02-26 22:59:25 -05:00 committed by GitHub
commit e4a7e7c434
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 201 additions and 42 deletions

View file

@ -7,6 +7,7 @@
---@class CpLanguage
---@field extension string
---@field commands CpLangCommands
---@field template? string
---@class CpPlatformOverrides
---@field extension? string
@ -216,6 +217,10 @@ local function validate_language(id, lang)
commands = { lang.commands, { 'table' } },
})
if lang.template ~= nil then
vim.validate({ template = { lang.template, 'string' } })
end
if not lang.commands.run then
error(('[cp.nvim] languages.%s.commands.run is required'):format(id))
end