Back to list
majjoha

nvim-context

by majjoha

Configuration files for my development environment.

17🍴 0📅 Jan 21, 2026

SKILL.md


name: nvim-context description: > Get the current Neovim context as JSON (cursor position, current file, visual selection and diagnostics) to help answer questions about code at the current cursor position, visual selections and diagnostics. Use when users ask about "this line", "current file", "selection" or need context about their Neovim editor state.

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

  1. Executes the nvim-context tool to get the current editor state.
  2. Returns JSON data including cursor position, open file, visual selection and diagnostics.
  3. 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.

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon