nvim_runtime_lua

vim.diagnostic._shared

Methods7

function _shared.count_sources(bufnr: integer) -> integer
function _shared.prefix_source(diagnostics: vim.Diagnostic[]) -> vim.Diagnostic[]
function _shared.get_logical_pos(diagnostic: vim.Diagnostic) -> (lnum integer, col integer, end_lnum integer, end_col integer, valid boolean)

Get a position based on an extmark referenced by _extmark_id field

function _shared.diagnostic_lines(diagnostics: vim.Diagnostic[] | nil, use_logical_pos: boolean) -> {integer, vim.Diagnostic[]}
function _shared.diagnostics_at_cursor(diagnostics: {integer, vim.Diagnostic[]}) -> vim.Diagnostic[]
function _shared.diagnostic_cmp(a: vim.Diagnostic, b: vim.Diagnostic, primary_key: string, reverse: boolean, col_fn: fun(diagnostic: vim.Diagnostic) -> integer | nil) -> boolean
function _shared.reformat_diagnostics(format: fun(diagnostic: vim.Diagnostic) -> nil | string, diagnostics: vim.Diagnostic[]) -> vim.Diagnostic[]