Merge pull request #30 from barrett-ruth/fix/cache

vimdocs
This commit is contained in:
Barrett Ruth 2025-09-15 03:42:58 +02:00 committed by GitHub
commit 1b86fe7f55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,27 +66,31 @@ CONFIGURATION *cp-config*
cp.nvim works out of the box. No setup required.
Optional configuration: >
require('cp').setup({
debug = false,
contests = {
default = {
cpp_version = 20,
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
timeout_ms = 2000,
},
atcoder = { cpp_version = 23 },
},
hooks = {
before_run = function(problem_id) vim.cmd.w() end,
before_debug = function(problem_id) ... end,
},
tile = function(source_buf, input_buf, output_buf)
end,
filename = function(contest, problem_id, problem_letter)
end,
})
Optional configuration with lazy.nvim: >
{
'barrett-ruth/cp.nvim',
cmd = 'CP',
opts = {
debug = false,
contests = {
default = {
cpp_version = 20,
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
timeout_ms = 2000,
},
atcoder = { cpp_version = 23 },
},
hooks = {
before_run = function(problem_id) vim.cmd.w() end,
before_debug = function(problem_id) ... end,
},
tile = function(source_buf, input_buf, output_buf)
end,
filename = function(contest, problem_id, problem_letter)
end,
}
}
<
Configuration options: