feat: use nvim_buf_set_extmark for vim.highlight (#16963)

Closes https://github.com/neovim/neovim/issues/13647

This allows customizing the priority of the highlights.

* Add default priority of 50
* Use priority of 200 for highlight on yank
* use priority of 40 for highlight references (LSP)
This commit is contained in:
Michael Lingelbach
2022-01-15 14:19:20 -08:00
committed by GitHub
parent f3193c7b54
commit b455e0179b
3 changed files with 32 additions and 16 deletions

View File

@@ -1550,7 +1550,10 @@ do --[[ References ]]
reference_ns,
document_highlight_kind[kind],
{ start_line, start_idx },
{ end_line, end_idx })
{ end_line, end_idx },
nil,
false,
40)
end
end
end