cp.nvim/lua/cp
Barrett Ruth c4d410d290 fix: decouple python env setup from config init
Problem: setup_python_env() is called from check_required_runtime()
during config.setup(), which runs on the very first :CP command. The
uv sync and nix build calls use vim.system():wait(), blocking the
Neovim event loop. During the block the UI is frozen and
vim.schedule-based log messages never render, so the user sees an
unresponsive editor with no feedback.

Solution: remove setup_python_env() from check_required_runtime() so
config init is instant. Call it lazily from run_scraper() instead,
only when a scraper subprocess is actually needed. Use vim.notify +
vim.cmd.redraw() before blocking calls so the notification renders
immediately via a forced screen repaint, rather than being queued
behind vim.schedule.
2026-02-18 17:48:06 -05:00
..
commands fix: cleanup picker message 2025-12-04 18:12:10 -05:00
pickers feat(io): cleanup view 2025-11-06 01:31:50 -05:00
runner feat: add debug logging to python env, scraper, and runner 2026-02-18 17:40:06 -05:00
ui try to fix the setup 2026-02-18 14:13:37 -05:00
cache.lua cleanup 2025-11-05 19:23:30 -05:00
config.lua fix: only show user-configured platforms in picker 2026-02-18 17:29:41 -05:00
constants.lua feat: codechef 2025-10-25 00:26:33 -04:00
health.lua feat(nix): add health 2026-02-18 14:13:37 -05:00
helpers.lua feat(ui): auto-hide source buffer on close 2025-10-24 14:47:12 -04:00
init.lua fix: surface runtime check failures as clean notifications 2026-02-18 17:25:50 -05:00
log.lua fix(cache): contest override 2025-10-04 12:48:57 -04:00
restore.lua fix: don't always open new window 2025-10-12 20:31:11 -04:00
scraper.lua fix: decouple python env setup from config init 2026-02-18 17:48:06 -05:00
setup.lua fix(setup): set language state before setup_code hook on first open 2026-02-06 16:29:46 -05:00
state.lua fix: race condition & logs 2026-01-27 12:22:53 -05:00
utils.lua fix: decouple python env setup from config init 2026-02-18 17:48:06 -05:00
version.lua fix: refactor 2025-09-21 11:19:00 -04:00