From 9e89dfa5bc6ed1d37e708f911f6df1b680c175f5 Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Sat, 6 Jan 2024 20:52:10 +0100 Subject: [PATCH] docs(neorg/core/utils): remove unused `Query` type --- lua/neorg/core/utils.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/neorg/core/utils.lua b/lua/neorg/core/utils.lua index 1a9f6267d..c27025004 100644 --- a/lua/neorg/core/utils.lua +++ b/lua/neorg/core/utils.lua @@ -7,12 +7,11 @@ local version = vim.version() -- TODO: Move to a more local scope --- A version agnostic way to call the neovim treesitter query parser --- @param language string # Language to use for the query --- @param query_string string # Query in s-expr syntax ---- @return Query # Parsed query +--- @return table # Parsed query function utils.ts_parse_query(language, query_string) if vim.treesitter.query.parse then return vim.treesitter.query.parse(language, query_string) else - ---@diagnostic disable-next-line return vim.treesitter.parse_query(language, query_string) end end