commit
1b86fe7f55
1 changed files with 25 additions and 21 deletions
46
doc/cp.txt
46
doc/cp.txt
|
|
@ -66,27 +66,31 @@ CONFIGURATION *cp-config*
|
||||||
|
|
||||||
cp.nvim works out of the box. No setup required.
|
cp.nvim works out of the box. No setup required.
|
||||||
|
|
||||||
Optional configuration: >
|
Optional configuration with lazy.nvim: >
|
||||||
require('cp').setup({
|
{
|
||||||
debug = false,
|
'barrett-ruth/cp.nvim',
|
||||||
contests = {
|
cmd = 'CP',
|
||||||
default = {
|
opts = {
|
||||||
cpp_version = 20,
|
debug = false,
|
||||||
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
|
contests = {
|
||||||
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
|
default = {
|
||||||
timeout_ms = 2000,
|
cpp_version = 20,
|
||||||
},
|
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
|
||||||
atcoder = { cpp_version = 23 },
|
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
|
||||||
},
|
timeout_ms = 2000,
|
||||||
hooks = {
|
},
|
||||||
before_run = function(problem_id) vim.cmd.w() end,
|
atcoder = { cpp_version = 23 },
|
||||||
before_debug = function(problem_id) ... end,
|
},
|
||||||
},
|
hooks = {
|
||||||
tile = function(source_buf, input_buf, output_buf)
|
before_run = function(problem_id) vim.cmd.w() end,
|
||||||
end,
|
before_debug = function(problem_id) ... end,
|
||||||
filename = function(contest, problem_id, problem_letter)
|
},
|
||||||
end,
|
tile = function(source_buf, input_buf, output_buf)
|
||||||
})
|
end,
|
||||||
|
filename = function(contest, problem_id, problem_letter)
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
||||||
<
|
<
|
||||||
|
|
||||||
Configuration options:
|
Configuration options:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue