fix: update docs, no more vim.g
This commit is contained in:
parent
18f27afd23
commit
4e58d320bb
3 changed files with 21 additions and 39 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
.venv/
|
.venv/
|
||||||
|
doc/tags
|
||||||
venv/
|
venv/
|
||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
|
|
|
||||||
43
doc/cp.txt
43
doc/cp.txt
|
|
@ -66,30 +66,27 @@ CONFIGURATION *cp-config*
|
||||||
|
|
||||||
cp.nvim works out of the box. No setup required.
|
cp.nvim works out of the box. No setup required.
|
||||||
|
|
||||||
Optional: >
|
Optional configuration: >
|
||||||
vim.g.cp = {
|
require('cp').setup({
|
||||||
config = {
|
debug = false,
|
||||||
debug = false,
|
contests = {
|
||||||
contests = {
|
default = {
|
||||||
default = {
|
cpp_version = 20,
|
||||||
cpp_version = 20,
|
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
|
||||||
compile_flags = { "-O2", "-DLOCAL", "-Wall", "-Wextra" },
|
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
|
||||||
debug_flags = { "-g3", "-fsanitize=address,undefined", "-DLOCAL" },
|
timeout_ms = 2000,
|
||||||
timeout_ms = 2000,
|
|
||||||
},
|
|
||||||
atcoder = { cpp_version = 23 },
|
|
||||||
},
|
},
|
||||||
hooks = {
|
atcoder = { cpp_version = 23 },
|
||||||
before_run = function(problem_id) vim.cmd.w() end,
|
},
|
||||||
},
|
hooks = {
|
||||||
tile = function(source_buf, input_buf, output_buf)
|
before_run = function(problem_id) vim.cmd.w() end,
|
||||||
-- custom window layout
|
before_debug = function(problem_id) ... end,
|
||||||
end,
|
},
|
||||||
filename = function(contest, problem_id, problem_letter)
|
tile = function(source_buf, input_buf, output_buf)
|
||||||
-- custom filename generation
|
end,
|
||||||
end,
|
filename = function(contest, problem_id, problem_letter)
|
||||||
}
|
end,
|
||||||
}
|
})
|
||||||
<
|
<
|
||||||
|
|
||||||
Configuration options:
|
Configuration options:
|
||||||
|
|
|
||||||
16
doc/tags
16
doc/tags
|
|
@ -1,16 +0,0 @@
|
||||||
:CP cp.txt /*:CP*
|
|
||||||
cp cp.txt /*cp*
|
|
||||||
cp-atcoder cp.txt /*cp-atcoder*
|
|
||||||
cp-codeforces cp.txt /*cp-codeforces*
|
|
||||||
cp-commands cp.txt /*cp-commands*
|
|
||||||
cp-config cp.txt /*cp-config*
|
|
||||||
cp-cses cp.txt /*cp-cses*
|
|
||||||
cp-example cp.txt /*cp-example*
|
|
||||||
cp-files cp.txt /*cp-files*
|
|
||||||
cp-health cp.txt /*cp-health*
|
|
||||||
cp-platforms cp.txt /*cp-platforms*
|
|
||||||
cp-requirements cp.txt /*cp-requirements*
|
|
||||||
cp-snippets cp.txt /*cp-snippets*
|
|
||||||
cp-workflow cp.txt /*cp-workflow*
|
|
||||||
cp.nvim cp.txt /*cp.nvim*
|
|
||||||
cp.txt cp.txt /*cp.txt*
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue