aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-11-24 14:46:20 +0100
committerluukvbaal <luukvbaal@gmail.com>2025-02-25 13:09:01 +0100
commit8ba047e33fe3a10765c593c810d54b5e3bb906e9 (patch)
treea31efbda695dcae1e1d31c738b72fec5669bf32f /runtime/queries
parentf58e7d5fac1c4f63f0ba3e59134591239182910e (diff)
downloadrneovim-8ba047e33fe3a10765c593c810d54b5e3bb906e9.tar.gz
rneovim-8ba047e33fe3a10765c593c810d54b5e3bb906e9.tar.bz2
rneovim-8ba047e33fe3a10765c593c810d54b5e3bb906e9.zip
feat(treesitter): vertical conceal support for highlighter
TSHighlighter now places marks for conceal_lines metadata. A new internal decor provider callback _on_conceal_line was added that instructs the highlighter to place conceal_lines marks whenever the editor needs to know whether a line is concealed. The bundled markdown queries use conceal_lines metadata to conceal code block fence lines.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/markdown/highlights.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/queries/markdown/highlights.scm b/runtime/queries/markdown/highlights.scm
index a12669ca2b..2a6ad1968f 100644
--- a/runtime/queries/markdown/highlights.scm
+++ b/runtime/queries/markdown/highlights.scm
@@ -49,12 +49,14 @@
(fenced_code_block
(fenced_code_block_delimiter) @markup.raw.block
- (#set! conceal ""))
+ (#set! conceal "")
+ (#set! conceal_lines ""))
(fenced_code_block
(info_string
(language) @label
- (#set! conceal "")))
+ (#set! conceal "")
+ (#set! conceal_lines "")))
(link_destination) @markup.link.url