cp.nvim/lua
Barrett Ruth 835119ccd6 feat(setup): prompt before overwriting existing source file
Problem: loading a problem whose source file already exists silently
overwrites any content written by the user.

Solution: when the target source file exists on the filesystem
(`vim.uv.fs_stat`), show an inline `[y/N]` prompt. Declining keeps the
existing file open and registers the platform/contest/problem state
without touching the file. The prompt is skipped when the file is
already loaded in a buffer.
2026-03-07 16:28:24 -05:00
..
cp feat(setup): prompt before overwriting existing source file 2026-03-07 16:28:24 -05:00