commit 21fa19f3e8c1d7b427c6d7c0dbcd6702d1e4e397
parent c4df2f08b689a17f838d40c6921a1d67c45995ad
Author: Chinmay Dalal <dalal.chinmay.0101@gmail.com>
Date: Sat, 8 Jul 2023 12:44:52 +0530
fix(lsp): don't use hl_mode = combine for inlay hints #24276
Problem: `hl_mode` for inlay hints is `combine`, causing bugs like
inlay hints using highlights from the previous character
(#24152, #24068)
Solution: Don't use hl_mode=combine for inlay hints.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/runtime/lua/vim/lsp/inlay_hint.lua b/runtime/lua/vim/lsp/inlay_hint.lua
@@ -289,7 +289,6 @@ api.nvim_set_decoration_provider(namespace, {
virt_text_pos = 'inline',
ephemeral = false,
virt_text = vt,
- hl_mode = 'combine',
})
end
end