config hard fail
This commit is contained in:
parent
69ffc2d9dd
commit
cddd61f061
3 changed files with 35 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue