On Fri, Jul 03, 2026 at 12:48:42PM -0300, Antonio Terceiro wrote:
I have a few extra syntax rules for markdown files, that I place in
~/.config/nvim/after/syntax/markdown.vim as documented. After vim 0.12
reached testing and I upgraded, this stopped working.

This is because nvim is now using treesitter to handle highlighting, by
default. You have two options.

1. Create a ~/.config/nvim/queries/markdown/highlights.scm and implement
   the same syntax extentions with treesitter. ":help treesitter-query",
   ":help treesitter-query-modeline-extends", and ":help
   treesitter-highlight" should help with that.
2. Create an empty ~/.config/nvim/queries/markdown/highlights.scm to
   defer to the Vim syntax highlighting.

Cheers,
--
James (he/him)
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to