Compare commits

..

No commits in common. "fix/template-fallback" and "chore/add-issue-templates" have entirely different histories.

2 changed files with 0 additions and 13 deletions

View file

@ -206,7 +206,6 @@ Debug Builds ~
CONFIGURATION *cp-config* CONFIGURATION *cp-config*
Configuration is done via `vim.g.cp_config`. Set this before using the plugin: Configuration is done via `vim.g.cp_config`. Set this before using the plugin:
>lua >lua
vim.g.cp_config = { vim.g.cp_config = {
languages = { languages = {
@ -274,7 +273,6 @@ By default, C++ (g++ with ISO C++17) and Python are preconfigured under
the default; per-platform overrides can tweak 'extension' or 'commands'. the default; per-platform overrides can tweak 'extension' or 'commands'.
For example, to run CodeForces contests with Python by default: For example, to run CodeForces contests with Python by default:
>lua >lua
vim.g.cp_config = { vim.g.cp_config = {
platforms = { platforms = {
@ -284,10 +282,8 @@ For example, to run CodeForces contests with Python by default:
}, },
} }
< <
Any language is supported provided the proper configuration. For example, to Any language is supported provided the proper configuration. For example, to
run CSES problems with Rust using the single schema: run CSES problems with Rust using the single schema:
>lua >lua
vim.g.cp_config = { vim.g.cp_config = {
languages = { languages = {

View file

@ -34,13 +34,4 @@ function M.is_initialized()
return initialized return initialized
end end
---@deprecated Use `vim.g.cp_config` instead
function M.setup(user_config)
vim.deprecate('require("cp").setup()', 'vim.g.cp_config', 'v0.1.0', 'cp.nvim', false)
if user_config then
vim.g.cp_config = vim.tbl_deep_extend('force', vim.g.cp_config or {}, user_config)
end
end
return M return M