You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a recent commit that has broken markdown highlighting (and likely others) due to nvim-treesitter deciding to change a lot of their queries to use standard tree-sitter queries.
There is a recent commit that has broken markdown highlighting (and likely others) due to nvim-treesitter deciding to change a lot of their queries to use standard tree-sitter queries.
The changes in question:
tree-sitter "standard capture names"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72):
@parameter
->@variable.parameter
@field
->@variable.member
@namespace
->@module
@float
->@number.float
@symbol
->@string.special.symbol
@string.regex
->@string.regexp
@text.*
->@markup.*
(strong
,italic
,link
,strikethrough
; with exceptions; see below)@text.title
->@markup.heading
@text.literal
->@markup.raw
@text.reference
->@markup.link
@text.uri
->@markup.link.url
(in markup links)@string.special
->@markup.link.label
(non-url links)@punctuation.special
->@markup.list
(markdown lists only; move subitems from@text.todo
)Helix captures
(https://docs.helix-editor.com/master/themes.html#syntax-highlighting):
@method
->@function.method
@method.call
->@function.method.call
@text.{todo,warning,note,danger}
->@comment.{error,warning,hint,info,todo}
@text.diff.{add,delete,}
->@diff.{plus,minus,delta}
@text.uri
->@string.special.url
(outside markup)@preproc
->@keyword.directive
@define
->@keyword.directive
(.define
?)@storageclass
->@keyword.storage
@conditional
->@keyword.conditional
@debug
->@keyword.debug
@exception
->@keyword.exception
@include
->@keyword.import
@repeat
->@keyword.repeat
The breakage is due to onedark.nvim not having some of the captures defined.
Some screenshots of running
TSHighlighCaptureUnderCursor
on a header before and after the nvim-treesitter changeThe text was updated successfully, but these errors were encountered: