skills/vim.diagnostics/SKILL.md
# 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) functi
npx skillsauth add theprimeagen/skills skills/vim.diagnosticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This document contains function definitions for Neovim's diagnostics Lua API. Use this as a reference when working with diagnostics in Neovim Lua.
vim.diagnostic APIs, types, and helpers.
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)
tools
# Neovim Lua API Reference This document contains type stubs and API references for Neovim's Lua API. Use this as a reference when writing Neovim plugins or configurations in Lua. --- ## api The following are type stubs for all the functions available on `vim.api.*`. Prefer these functions where possible. ```lua vim.api = {} vim.api.nvim__buf_debug_extmarks(buffer, keys, dot) vim.api.nvim__buf_stats(buffer) vim.api.nvim__complete_set(index, opts) vim.api.nvim__get_lib_dir() vim.api.nvim
development
# Neovim Treesitter API Reference This document contains type stubs and API references for Neovim's treesitter Lua API. Use this as a reference when working with treesitter in Neovim Lua. --- ## tsnode TSNode methods - represents a specific element in a parsed syntax tree. Use these methods to navigate and inspect nodes. ```lua function TSNode:parent() end function TSNode:next_sibling() end function TSNode:prev_sibling() end function TSNode:next_named_sibling() end function TSNode:prev_name
tools
# Neovim LSP API Reference This document contains function definitions from Neovim's LSP help docs. Use this as a reference when working with LSP in Neovim Lua. --- ## lsp Functions extracted from `lsp.txt`. ```lua vim.lsp.buf_attach_client({bufnr}, {client_id}) vim.lsp.buf_detach_client({bufnr}, {client_id}) vim.lsp.buf_is_attached({bufnr}, {client_id}) vim.lsp.buf_notify({bufnr}, {method}, {params}) vim.lsp.buf_request_all({bufnr}, {method}, {params}, {handler}) vim.lsp.buf_request_sync({
development
Tmux-based dev.sh script conventions