From 21b3e8ccdc2cc22dab3e6ef4abd26587a7e7e116 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Tue, 8 Aug 2023 10:47:45 +0300 Subject: [PATCH] update treesitter api usage --- lua/personal/cmacro-align.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/personal/cmacro-align.lua b/lua/personal/cmacro-align.lua index ddc05df..be2ea43 100644 --- a/lua/personal/cmacro-align.lua +++ b/lua/personal/cmacro-align.lua @@ -1,5 +1,5 @@ local ts = vim.treesitter -local query = ts.parse_query("c", [[ +local query = ts.query.parse("c", [[ (preproc_function_def value: (preproc_arg) @macro_def) (preproc_def value: (preproc_arg) @macro_def) ]])