aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/dev.lua
diff options
context:
space:
mode:
authorMichele Campeotto <micampe@micampe.it>2026-02-12 14:07:13 +0100
committerGitHub <noreply@github.com>2026-02-12 08:07:13 -0500
commitd0822bbd155796bd04c0ef1fdf051e90a09fa0a7 (patch)
treede2cebeb6021ff0b23dc3fca21334125fb2e2b10 /runtime/lua/vim/treesitter/dev.lua
parentfd69b7111912ae5ccb01327b130f582be23e44dc (diff)
downloadrneovim-d0822bbd155796bd04c0ef1fdf051e90a09fa0a7.tar.gz
rneovim-d0822bbd155796bd04c0ef1fdf051e90a09fa0a7.tar.bz2
rneovim-d0822bbd155796bd04c0ef1fdf051e90a09fa0a7.zip
fix(treesitter): highlight group for EditQuery captures #36265
fix(treesitter): more distinctive highlight for EditQuery captures Problem: EditQuery shows captures in the source buffer using the Title highlight group, which could be too similar to Normal. Solution: Use a virtual text diagnostic highlight group: they are displayed in a similar manner to the query captures so we can assume that the color scheme should have appropriate styling applied to make them visible.
Diffstat (limited to 'runtime/lua/vim/treesitter/dev.lua')
-rw-r--r--runtime/lua/vim/treesitter/dev.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/dev.lua b/runtime/lua/vim/treesitter/dev.lua
index 246525757d..cb5d8a886f 100644
--- a/runtime/lua/vim/treesitter/dev.lua
+++ b/runtime/lua/vim/treesitter/dev.lua
@@ -608,7 +608,7 @@ local function update_editor_highlights(query_win, base_win, lang)
end_col = end_col,
hl_group = 'Visual',
virt_text = {
- { capture_name, 'Title' },
+ { capture_name, 'DiagnosticVirtualTextHint' },
},
})
end