config hard fail

This commit is contained in:
Barrett Ruth 2025-10-02 23:20:51 -04:00
parent 69ffc2d9dd
commit cddd61f061
3 changed files with 35 additions and 4 deletions

View file

@ -52,7 +52,10 @@
---@field picker? string|nil
local M = {}
local constants = require('cp.constants')
local logger = require('cp.log')
local utils = require('cp.utils')
local default_contest_config = {
cpp = {
@ -249,6 +252,11 @@ function M.setup(user_config)
end
end
local ok, err = utils.check_required_runtime()
if not ok then
error('[cp.nvim] ' .. err)
end
return config
end