Quick Start¶
Once installed, you can start using Tickets.nvim immediately.
Requirements¶
To use the GitHub integration features:
- Git Repository: You must be inside a git repository with a remote named
originpointing to GitHub. - Authentication:
- gh CLI (Recommended): Install and authenticate with
gh auth login. - GITHUB_TOKEN: Alternatively, set the
GITHUB_TOKENenvironment variable.
- gh CLI (Recommended): Install and authenticate with
Basic Setup¶
In your init.lua or plugin configuration file, call the setup function:
Commands¶
Open Todo List¶
To open your designated todo file in a floating window:
- Edit the file as normal.
- Press
qin Normal mode to close the window (only if saved).
Fetch GitHub Issues¶
To fetch issues from the current repository:
The plugin will:
1. Detect the repository from your git remote (origin).
2. Check cache first; if cached, display instantly.
3. Otherwise, fetch open issues using gh CLI or curl (fallback).
4. Display them in a floating window.
5. Notify you of the number of issues found (or if none exist).
Additional GitHub Commands¶
:TicketsGithubRefresh " Force refresh from API (bypass cache)
:TicketsCacheClear " Clear all cached data
:TicketsCacheClear owner/repo " Clear cache for specific repository
:TicketsCacheStats " Show cache statistics
Viewing Issue Details¶
When the issues list is open:
- Press
<CR>(Enter) on any issue to view full details including description, labels, assignees, and comments - Press
qto close the detail view - Press
gxto open the issue in your browser
Configuration¶
You can pass options to the setup function:
| Option | Type | Default | Description |
|---|---|---|---|
target_file |
string |
"todo.md" |
The file path to open when running :Tickets. |