summaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2023-11-18 17:20:51 -0800
committerGitHub <noreply@github.com>2023-11-19 10:20:51 +0900
commitf2de95e30aac507bf7fa785e13a8edcbdc604605 (patch)
treea8cbbd0faea3805665e1ced7912ad1d44640c5b9 /queries
parentfeat(jq): add locals queries (diff)
downloadnvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar.gz
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar.bz2
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar.lz
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar.xz
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.tar.zst
nvim-treesitter-f2de95e30aac507bf7fa785e13a8edcbdc604605.zip
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
Diffstat (limited to 'queries')
-rw-r--r--queries/markdown/highlights.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 23f1fb60f..085a1d827 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -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
[