aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-19 13:48:03 +0100
committerbfredl <bjorn.linse@gmail.com>2022-03-20 18:02:41 +0100
commit6eca9b69c4a1f40f27a6b41961af787327259de8 (patch)
tree5991bdfd77a3ad463edb54e39e4ee2a7b4841d37 /runtime/lua/vim
parent463738938d2f3ec4cff6f016937c3c02daae1184 (diff)
downloadrneovim-6eca9b69c4a1f40f27a6b41961af787327259de8.tar.gz
rneovim-6eca9b69c4a1f40f27a6b41961af787327259de8.tar.bz2
rneovim-6eca9b69c4a1f40f27a6b41961af787327259de8.zip
feat(ui): allow conceal to be defined in decorations
Unlike syntax conceal, change highlight of concealed char Can be used in tree-sitter using "conceal" metadata.
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/treesitter/highlighter.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/highlighter.lua b/runtime/lua/vim/treesitter/highlighter.lua
index b6f61cfb2e..e1ffd42a7f 100644
--- a/runtime/lua/vim/treesitter/highlighter.lua
+++ b/runtime/lua/vim/treesitter/highlighter.lua
@@ -274,7 +274,8 @@ local function on_line_impl(self, buf, line)
{ end_line = end_row, end_col = end_col,
hl_group = hl,
ephemeral = true,
- priority = tonumber(metadata.priority) or 100 -- Low but leaves room below
+ priority = tonumber(metadata.priority) or 100, -- Low but leaves room below
+ conceal = metadata.conceal,
})
end
if start_row > line then