mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(markdown): conceals for bullets, block quotes
* feat(markdown): conceals for bullets, block quotes * fix: remove conceals for block quotes, change list minus to em dash * fix(markdown): allow empty bullets to be concealed
This commit is contained in:
parent
f9999888eb
commit
f2de95e30a
1 changed files with 18 additions and 0 deletions
|
|
@ -34,6 +34,24 @@
|
|||
(info_string (language) @conceal
|
||||
(#set! conceal "")))
|
||||
|
||||
;; Conceal bullet points
|
||||
([(list_marker_plus) (list_marker_star)]
|
||||
@punctuation.special
|
||||
(#offset! @punctuation.special 0 0 0 -1)
|
||||
(#set! conceal "•"))
|
||||
([(list_marker_plus) (list_marker_star)]
|
||||
@punctuation.special
|
||||
(#any-of? @punctuation.special "+" "*")
|
||||
(#set! conceal "•"))
|
||||
((list_marker_minus)
|
||||
@punctuation.special
|
||||
(#offset! @punctuation.special 0 0 0 -1)
|
||||
(#set! conceal "—"))
|
||||
((list_marker_minus)
|
||||
@punctuation.special
|
||||
(#eq? @punctuation.special "-")
|
||||
(#set! conceal "—"))
|
||||
|
||||
(code_fence_content) @none
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue