diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-02-19 08:38:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 08:38:14 -0800 |
commit | 791e400858ae8d32f974b40c4e1c0d54b66f610f (patch) | |
tree | f9187cd884a8d29ca10c12a657fd74b566e97b08 /runtime/lua/vim/diagnostic.lua | |
parent | 5cb45dffba730d0009d4c4d6b26efaa994727e2d (diff) | |
download | rneovim-791e400858ae8d32f974b40c4e1c0d54b66f610f.tar.gz rneovim-791e400858ae8d32f974b40c4e1c0d54b66f610f.tar.bz2 rneovim-791e400858ae8d32f974b40c4e1c0d54b66f610f.zip |
fix: lsp and diagnostic highlight priority (#17461)
Closes https://github.com/neovim/neovim/issues/17456
* treesitter uses the default highlight priority of 50
* diagnostic highlights have a priority of 150
* lsp reference highlights have a priority of 200
This ensures proper ordering.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/diagnostic.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index b4537c2882..fda70b4e95 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -920,7 +920,10 @@ M.handlers.underline = { underline_ns, higroup, { diagnostic.lnum, diagnostic.col }, - { diagnostic.end_lnum, diagnostic.end_col } + { diagnostic.end_lnum, diagnostic.end_col }, + 'v', + false, + 150 ) end save_extmarks(underline_ns, bufnr) |