Inject query into lua for set_query calls

This commit is contained in:
Connor Lay (Clay) 2022-04-06 09:01:11 -07:00 committed by Kiyan
parent 99625b59b5
commit ab372a88ef

View file

@ -11,4 +11,9 @@
arguments: (arguments (string content: _ @vim)))
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec"))
((function_call
name: (_) @_vimcmd_identifier
arguments: (arguments (string content: _ @query) .))
(#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
(comment) @comment