fix(yaml): +tree-sitter: use 0.7.2 grammar when ABI==15

0.7.0 (where the old commit pointed to) is for ABI==14.
This commit is contained in:
Henrik Lissner 2026-03-11 04:06:41 -04:00
parent d771e24efa
commit 379d7d7147
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -13,8 +13,8 @@
:defer t
:init
(set-tree-sitter! 'yaml-mode 'yaml-ts-mode
'((yaml :url "https://github.com/tree-sitter-grammars/tree-sitter-yaml"
:commit "b733d3f5f5005890f324333dd57e1f0badec5c87")))
`((yaml :url "https://github.com/tree-sitter-grammars/tree-sitter-yaml"
:rev ,(if (< (treesit-library-abi-version) 15) "v0.7.2" "v0.7.0"))))
:config
(when (modulep! +lsp)
(add-hook 'yaml-ts-mode-local-vars-hook #'lsp! 'append)))