aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-02-19 08:38:14 -0800
committerGitHub <noreply@github.com>2022-02-19 08:38:14 -0800
commit791e400858ae8d32f974b40c4e1c0d54b66f610f (patch)
treef9187cd884a8d29ca10c12a657fd74b566e97b08 /runtime/lua/vim/lsp/util.lua
parent5cb45dffba730d0009d4c4d6b26efaa994727e2d (diff)
downloadrneovim-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/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index d22c00ae76..d93331c12f 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1551,9 +1551,9 @@ do --[[ References ]]
document_highlight_kind[kind],
{ start_line, start_idx },
{ end_line, end_idx },
- nil,
+ 'v',
false,
- 40)
+ 200)
end
end
end