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

@@ -1551,9 +1551,7 @@ do --[[ References ]]
document_highlight_kind[kind],
{ start_line, start_idx },
{ end_line, end_idx },
'v',
false,
200)
{ priority = vim.highlight.priorities.user })
end
end
end