nvim-context
1
总安装量
1
周安装量
#49597
全站排名
安装命令
npx skills add https://github.com/majjoha/dotfiles --skill nvim-context
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
claude-code
1
Skill 文档
Neovim context provider
Purpose
Provides live context from the user’s Neovim editor session to help answer context-aware questions about code.
How it works
- Executes the
nvim-contexttool to get the current editor state. - Returns JSON data including cursor position, open file, visual selection and diagnostics.
- Use this information to understand references like “this line”, “the selection”, “current file”, etc.
Usage examples
- “What’s wrong with this line?” â Check diagnostics at cursor
- “Explain the selected code” â Analyze visual selection
- “What file am I in?” â Return current file path
- “Show me all errors” â List all LSP diagnostics
Technical details
To use this skill, execute the nvim-context CLI command which outputs JSON:
{
"cursor": {
"line": 43,
"col": 3
},
"file": "/path/to/current/file.rb",
"selection": null,
"diagnostics": []
}
Implementation
When this skill is loaded, execute nvim-context via Bash and parse the JSON
output to understand the current editor state. Use the returned data to answer
user questions about their code.