Skip to content

Commit

Permalink
docs(neorg/core/utils): remove unused Query type
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jan 6, 2024
1 parent 252ebd1 commit 9e89dfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neorg/core/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e89dfa

Please sign in to comment.