refactor(highlight)!: optional arguments for highlight.range as table (#17462)

also update documentation

BREAKING CHANGE: signature of highlight.range is now
     vim.highlight.range(bufnr, ns, hlgroup, start, finish,
         { regtype = regtype, inclusive = inclusive, priority = priority })

Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
This commit is contained in:
Christian Clason
2022-02-21 21:21:42 +01:00
committed by GitHub
parent 1e7cb2dcd9
commit 10a46a20ce
4 changed files with 95 additions and 50 deletions

View File

@@ -921,9 +921,7 @@ M.handlers.underline = {
higroup,
{ diagnostic.lnum, diagnostic.col },
{ diagnostic.end_lnum, diagnostic.end_col },
'v',
false,
150
{ priority = vim.highlight.priorities.diagnostics }
)
end
save_extmarks(underline_ns, bufnr)