refactor: remove open_url config option in favour of :CP open (#322)

## Problem

`open_url` automatically opened the browser on contest load and problem
change, which is now redundant with `:CP open`.

## Solution

Remove the `open_url` field from `cp.Config`, its default, its
validation, and the call site in `setup_contest`. Remove documentation
from `cp.nvim.txt`.
This commit is contained in:
Barrett Ruth 2026-03-05 22:55:43 -05:00 committed by GitHub
parent 401afb205e
commit 2d50f0a52a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 14 deletions

View file

@ -113,7 +113,6 @@ Configuration is done via `vim.g.cp`. Set this before using the plugin:
default_language = 'cpp',
},
},
open_url = true,
debug = false,
ui = {
ansi = true,
@ -186,8 +185,6 @@ run CSES problems with Rust using the single schema:
Should return full filename with extension.
(default: concatenates contest_id and problem_id, lowercased)
{ui} (|CpUI|) UI settings: panel, diff backend, picker.
{open_url} (boolean) Open the contest & problem url in the browser
when a new contest is opened or the active problem changes.
*CpPlatform*
Fields: ~