mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user