refactor: remove open_url config option in favour of :CP open

This commit is contained in:
Barrett Ruth 2026-03-05 22:54:16 -05:00
parent 401afb205e
commit 6650e5872c
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
3 changed files with 0 additions and 14 deletions

View file

@ -101,7 +101,6 @@
---@field templates? CpTemplatesConfig
---@field hooks Hooks
---@field debug boolean
---@field open_url boolean
---@field scrapers string[]
---@field filename? fun(contest: string, contest_id: string, problem_id?: string, config: cp.Config, language?: string): string
---@field ui CpUI
@ -118,7 +117,6 @@ local utils = require('cp.utils')
-- defaults per the new single schema
---@type cp.Config
M.defaults = {
open_url = false,
languages = {
cpp = {
extension = 'cc',
@ -362,7 +360,6 @@ function M.setup(user_config)
hooks = { cfg.hooks, { 'table' } },
ui = { cfg.ui, { 'table' } },
debug = { cfg.debug, { 'boolean', 'nil' }, true },
open_url = { cfg.open_url, { 'boolean', 'nil' }, true },
filename = { cfg.filename, { 'function', 'nil' }, true },
scrapers = {
cfg.scrapers,