da433068ef
remove straggler file
2026-02-17 21:10:56 -05:00
51504b0121
fix: flake config;
2026-02-17 21:10:29 -05:00
49df7e015d
docs: add setup section and reorder vimdoc
...
Problem: the vimdoc had no setup section, and configuration was buried
after commands and mappings.
Solution: add a cp-setup section with lazy.nvim example and move both
setup and configuration above commands for better discoverability.
2026-02-17 21:09:58 -05:00
029ea125b9
feat: add <Plug> mappings for all primary actions
...
Problem: users who want keybindings must call vim.cmd('CP run') or
reach into internal Lua modules directly. There is no stable,
discoverable, lazy-load-friendly public API for key binding.
Solution: define 7 <Plug> mappings in plugin/cp.lua that dispatch
through the same handle_command() code path as :CP. Document them
in a new MAPPINGS section in the vimdoc with helptags and an example
config block.
2026-02-07 13:23:45 -05:00
Barrett Ruth
43193c3762
Merge pull request #239 from barrettruth/refactor/remove-cp-config-compat
...
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
refactor: remove vim.g.cp_config compatibility shim
2026-02-06 16:42:41 -05:00
de2bc07532
refactor: remove vim.g.cp_config compatibility shim
...
Problem: the deprecated vim.g.cp_config fallback was kept for
backwards compatibility after the rename to vim.g.cp in v0.7.6.
Solution: drop the shim entirely and update the setup() deprecation
target to v0.7.7.
2026-02-06 16:40:39 -05:00
Barrett Ruth
041e09ac04
Merge pull request #238 from barrettruth/fix/setup-code-hook-language
...
fix(setup): set language state before setup_code hook on first open
2026-02-06 16:38:41 -05:00
d23b4e59d1
fix(setup): set language state before setup_code hook on first open
...
Problem: when opening a contest for the first time (metadata not
cached), the setup_code hook fired before state.set_language() was
called, causing state.get_language() to return nil inside the hook.
Solution: call state.set_language(lang) before the hook in the
provisional-buffer branch of setup_contest(). The value is already
computed at that point and is identical to what setup_problem() sets
later, so the early write is idempotent.
2026-02-06 16:29:46 -05:00
Barrett Ruth
19e71ac7fa
Merge pull request #237 from barrettruth/feat/vim-g-update
...
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
refactor: rename `vim.g.cp_config` to `vim.g.cp`
2026-02-06 16:07:03 -05:00
a54a06f939
refactor: rename vim.g.cp_config to vim.g.cp
2026-02-06 15:16:21 -05:00
Barrett Ruth
b2c7f16890
Merge pull request #234 from barrettruth/fix/deprecation-warning
...
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
fix: add deprecation warning for setup()
2026-02-03 21:51:19 -05:00
276241447c
fix: add deprecation warning for setup()
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
2026-02-03 21:46:47 -05:00
dc635d5167
chore: add issue templates
2026-02-03 21:07:01 -05:00
Barrett Ruth
81ddd1ea87
Merge pull request #231 from barrettruth/fix/config
...
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
use `vim.g` for setup
2026-02-03 16:14:19 -05:00
Barrett Ruth
7444a99b22
Merge branch 'main' into fix/config
2026-02-03 16:13:35 -05:00
ec487aa489
feat: config update to viom.g
2026-02-03 16:12:47 -05:00
Barrett Ruth
c4af9bf604
Merge pull request #228 from barrettruth/fix/doc
...
via, not main
2026-02-03 01:51:38 -05:00
Barrett Ruth
a4437bc1c6
Merge branch 'main' into fix/doc
2026-02-03 01:50:46 -05:00
1a7e9517ba
force
2026-02-03 01:50:22 -05:00
11b8365aac
via, not main
2026-02-03 01:49:47 -05:00
Barrett Ruth
585ebf0daf
Merge pull request #227 from barrettruth/fix/doc
...
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
update installation method
2026-02-03 01:43:56 -05:00
08fb654d23
format yml too in pre-commit
2026-02-03 01:43:13 -05:00
01efc7c344
fix(ci): prettier format
2026-02-03 01:41:35 -05:00
f9f993db0c
fix: pre-commit syntax error
2026-02-03 01:39:26 -05:00
f184a7874a
feat: update docs
2026-02-03 01:38:13 -05:00
Barrett Ruth
89e3c0e21d
Merge pull request #226 from barrettruth/feat/dir-bug
...
misc bugfixes
2026-02-02 13:16:46 -05:00
Barrett Ruth
a9ce31a291
Merge branch 'main' into feat/dir-bug
2026-02-02 13:13:41 -05:00
c8f735617a
misc bugfixes
2026-02-02 13:13:08 -05:00
Barrett Ruth
a14f543371
Merge pull request #225 from barrettruth/fix/rockspec
...
fix username docs
2026-02-01 17:13:00 -05:00
Barrett Ruth
56ec178cdd
Merge branch 'main' into fix/rockspec
2026-02-01 17:12:38 -05:00
5cd6f75419
fix username too
2026-02-01 17:11:51 -05:00
Barrett Ruth
99d907aa7a
Merge pull request #224 from barrettruth/fix/rockspec
...
fix rockspec url for new username
2026-02-01 17:02:22 -05:00
c06d819597
fix(ci): fix rockspec url
2026-02-01 17:01:29 -05:00
Barrett Ruth
682b267019
Merge pull request #223 from barrettruth/fix/ci
...
fix ci
2026-01-27 17:20:43 -06:00
Barrett Ruth
8a2871ec1b
Merge branch 'main' into fix/ci
2026-01-27 17:20:25 -06:00
de1295d361
fix ci
luarocks / ci (push) Waiting to run
luarocks / publish (push) Blocked by required conditions
2026-01-27 18:19:49 -05:00
Barrett Ruth
32f449850b
Merge pull request #222 from barrettruth/fix/ci
...
feat: misc tests
2026-01-27 17:16:16 -06:00
6966e8e101
feat: misc tests
2026-01-27 18:14:54 -05:00
Barrett Ruth
a5e094d44a
Merge pull request #221 from barrettruth/fix/ci
...
fix(ci): only run on tag push
2026-01-27 17:12:10 -06:00
Barrett Ruth
5de6fb2fee
Merge branch 'main' into fix/ci
2026-01-27 17:10:47 -06:00
bd25f1db0b
fix(ci): only run on tag push
2026-01-27 18:09:57 -05:00
Barrett Ruth
9daa4e4ec4
Merge pull request #220 from barrettruth/fix/ci
...
run luarocks build on successful ci
2026-01-27 17:06:12 -06:00
0b5c0f0c40
fix(ci): only run luarocks build on successful ci
2026-01-27 18:04:56 -05:00
Barrett Ruth
af559b0fa3
Merge pull request #219 from barrettruth/fix/misc
...
Release / Publish to LuaRocks (push) Waiting to run
improve config validation
2026-01-27 16:38:03 -06:00
d496509fce
feat(config): improve config parsing phrasing
2026-01-27 17:33:16 -05:00
383b327442
fix(config): validate scraper names better
2026-01-27 17:32:21 -05:00
3f677137de
fix(config): one of validation
2026-01-27 17:27:15 -05:00
0a1cea9b43
feat: debug
2026-01-27 17:25:03 -05:00
Barrett Ruth
6ba51a92c2
Merge pull request #218 from barrettruth/fix/scraper-refactor
...
misc tweaks
2026-01-27 16:22:08 -06:00
Barrett Ruth
86f2e41983
Merge branch 'main' into fix/scraper-refactor
2026-01-27 16:20:44 -06:00