aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.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/diagnostic.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/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua5
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)