diff --git a/.gitignore b/.gitignore index 510792a..2b83f71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .venv/ +doc/tags venv/ CLAUDE.md diff --git a/doc/cp.txt b/doc/cp.txt index ca856c6..120d553 100644 --- a/doc/cp.txt +++ b/doc/cp.txt @@ -66,30 +66,27 @@ CONFIGURATION *cp-config* cp.nvim works out of the box. No setup required. -Optional: > - vim.g.cp = { - config = { - 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 }, +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, }, - hooks = { - before_run = function(problem_id) vim.cmd.w() end, - }, - tile = function(source_buf, input_buf, output_buf) - -- custom window layout - end, - filename = function(contest, problem_id, problem_letter) - -- custom filename generation - end, - } - } + 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: diff --git a/doc/tags b/doc/tags deleted file mode 100644 index 0acf674..0000000 --- a/doc/tags +++ /dev/null @@ -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*