feat: fix naming
This commit is contained in:
parent
dbe445c279
commit
6a7ade554e
6 changed files with 97 additions and 48 deletions
11
doc/cp.txt
11
doc/cp.txt
|
|
@ -92,6 +92,13 @@ example, with lazy.nvim (https://github.com/folke/lazy.nvim):
|
|||
vim.api.nvim_set_current_buf(input_buf)
|
||||
vim.cmd('wincmd h | wincmd h')
|
||||
end,
|
||||
filename = function(contest, problem_id, problem_letter)
|
||||
if contest == "atcoder" then
|
||||
return problem_id:lower() .. (problem_letter or "") .. ".cpp"
|
||||
else
|
||||
return problem_id:lower() .. (problem_letter or "") .. ".cc"
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
|
|
@ -122,6 +129,10 @@ tile Custom function to arrange windows
|
|||
function(source_buf, input_buf, output_buf)
|
||||
(default: nil, uses built-in layout)
|
||||
|
||||
filename Custom function to generate filenames
|
||||
function(contest, problem_id, problem_letter)
|
||||
(default: nil, uses problem_id + letter + ".cc")
|
||||
|
||||
WORKFLOW *cp-workflow*
|
||||
|
||||
1. Set up contest environment: >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue