Neovim Diagnostics API Reference
This document contains function definitions for Neovim's diagnostics Lua API.
Best use case
Neovim Diagnostics API Reference is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
This document contains function definitions for Neovim's diagnostics Lua API.
Teams using Neovim Diagnostics API Reference should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/vim.diagnostics/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Neovim Diagnostics API Reference Compares
| Feature / Agent | Neovim Diagnostics API Reference | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
This document contains function definitions for Neovim's diagnostics Lua API.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# Neovim Diagnostics API Reference This document contains function definitions for Neovim's diagnostics Lua API. Use this as a reference when working with diagnostics in Neovim Lua. --- ## diagnostic vim.diagnostic APIs, types, and helpers. ```lua function get_qf_id_for_title(title) function __newindex(t, name, handler) function __index(t, bufnr) function callback() function to_severity(severity) function severity_predicate(severity) function filter_by_severity(severity, diagnostics) function count_sources(bufnr) function prefix_source(diagnostics) function reformat_diagnostics(format, diagnostics) function enabled_value(option, namespace) function resolve_optional_value(option, value, namespace, bufnr) function get_resolved_options(opts, namespace, bufnr) function make_highlight_map(base_name) function diagnostic_lines(diagnostics) function diagnostics_at_cursor(diagnostics) function set_diagnostic_cache(namespace, bufnr, diagnostics) function restore_extmarks(bufnr, last) function save_extmarks(namespace, bufnr) function on_lines(_, _, _, _, _, last) function on_detach() function severity_to_extmark_priority(priority, opts) function make_augroup_key(namespace, bufnr) function execute_scheduled_display(namespace, bufnr) function schedule_display(namespace, bufnr, args) function clear_scheduled_display(namespace, bufnr) function get_diagnostics(bufnr, opts, clamp) function __index(t, k) function add(b, d) function add_all_diags(buf, diags) function set_list(loclist, opts) function filter_highest(diagnostics) function next_diagnostic(search_forward, opts) function sort_diagnostics(a, b) function is_next(d) function goto_diagnostic(diagnostic, opts) function M.config(opts, namespace) function M.set(namespace, bufnr, diagnostics, opts) function M.get_namespace(namespace) function M.get_namespaces() function M.get(bufnr, opts) function M.count(bufnr, opts) function M.get_prev(opts) function M.get_prev_pos(opts) function M.goto_prev(opts) function M.get_next(opts) function M.get_next_pos(opts) function M.jump(opts) function M.goto_next(opts) function show(namespace, bufnr, diagnostics, opts) function hide(namespace, bufnr) function render_virtual_text(namespace, bufnr, diagnostics, opts) function distance_between_cols(bufnr, lnum, start_col, end_col) function render_virtual_lines(namespace, bufnr, diagnostics) function format_virtual_lines(diagnostic) function M._get_virt_text_chunks(line_diags, opts) function M.hide(namespace, bufnr) function M.is_enabled(filter) function M.is_disabled(bufnr, namespace) function M.show(namespace, bufnr, diagnostics, opts) function M.open_float(opts, ...) function M.reset(namespace, bufnr) function M.setqflist(opts) function M.setloclist(opts) function M.disable(bufnr, namespace) function M.enable(enable, filter) function __index() function M.match(str, pat, groups, severity_map, defaults) function M.toqflist(diagnostics) function M.fromqflist(list) ```
Related Skills
Neovim Treesitter API Reference
This document contains type stubs and API references for Neovim's treesitter Lua API.
Neovim LSP API Reference
This document contains function definitions from Neovim's LSP help docs.
foo
No description provided.
makepad-reference
This category provides reference materials for debugging, code quality, and advanced layout patterns.
error-diagnostics-smart-debug
Use when working with error diagnostics smart debug
error-diagnostics-error-trace
You are an error tracking and observability expert specializing in implementing comprehensive error monitoring solutions. Set up error tracking systems, configure alerts, implement structured logging,
error-diagnostics-error-analysis
You are an expert error analysis specialist with deep expertise in debugging distributed systems, analyzing production incidents, and implementing comprehensive observability solutions.
reference-builder
Creates exhaustive technical references and API documentation. Generates comprehensive parameter listings, configuration guides, and searchable reference materials.
microsoft-code-reference
Look up Microsoft API references, find working code samples, and verify SDK code is correct. Use when working with Azure SDKs, .NET libraries, or Microsoft APIs—to find the right method, check parameters, get working examples, or troubleshoot errors. Catches hallucinated methods, wrong signatures, and deprecated patterns by querying official docs.
Top 100 Web Vulnerabilities Reference
This skill should be used when the user asks to "identify web application vulnerabilities", "explain common security flaws", "understand vulnerability categories", "learn about injection attacks", "review access control weaknesses", "analyze API security issues", "assess security misconfigurations", "understand client-side vulnerabilities", "examine mobile and IoT security flaws", or "reference the OWASP-aligned vulnerability taxonomy". Use this skill to provide comprehensive vulnerability definitions, root causes, impacts, and mitigation strategies across all major web security categories.
omc-reference
OMC agent catalog, available tools, team pipeline routing, commit protocol, and skills registry. Auto-loads when delegating to agents, using OMC tools, orchestrating teams, making commits, or invoking skills.
paper-reference-checker
This skill should be used when the user asks to "check paper citations", "verify references", "detect fake citations", "validate bibliography", "check if papers exist", "查文献真伪", "检查论文引用", "验证参考文献", "识别虚假引用", or uploads a PDF/Overleaf document and wants to verify whether the cited papers genuinely exist. Provides systematic verification of academic references against Google Scholar, CNKI, arXiv, and other academic databases to detect AI-hallucinated or fabricated citations.