fix: shim 0.9 deprecations

This commit is contained in:
Lewis Russell 2023-03-24 09:43:14 +00:00 committed by Christian Clason
parent c7b9f68d03
commit 90ead4ed58
6 changed files with 27 additions and 8 deletions

View file

@ -14,7 +14,7 @@
((function_call
name: (_) @_vimcmd_identifier
arguments: (arguments (string content: _ @query) .))
(#any-of? @_vimcmd_identifier "vim.treesitter.query.set_query" "vim.treesitter.query.parse_query"))
(#any-of? @_vimcmd_identifier "vim.treesitter.query.set" "vim.treesitter.query.parse_query"))
;; highlight string as query if starts with `;; query`
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))