docs: statusline integration recipes in vimdoc #263
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
cp.nvim has rich state (
platform,contest_id,problem_id,language) but no documented path for surfacing it in statusline plugins like lualine, heirline, or feline. Users who want to display "CF/1234/A [cpp]" in their statusline have no documented approach and must discoverrequire('cp.state')themselves.Proposed solution
Add a Recipes or Integrations section to the vimdoc covering statusline usage, e.g.:
This requires zero new Lua code — only documentation.
require('cp.state')is already the stable internal module and is unlikely to move. A dedicated public API module would add unnecessary surface area.Alternatives considered
Adding a
require('cp').statuslinepublic module. Rejected as unnecessary complexity — documenting the existingrequire('cp.state')API is sufficient and avoids maintaining a separate abstraction.