Skip to content

Commit

Permalink
fix: don't use deprecated query.get_node_text() call (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
linguini1 authored Sep 23, 2023
1 parent d8e2c8e commit 7248c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/queries/native/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.public = {

for _, node in ipairs(nodes) do
local temp_buf = module.public.get_temp_buf(node[2])
local extracted = vim.split(vim.treesitter.query.get_node_text(node[1], temp_buf), "\n")
local extracted = vim.split(vim.treesitter.get_node_text(node[1], temp_buf), "\n")

if opts.all_lines then
table.insert(res, extracted)
Expand Down

0 comments on commit 7248c34

Please sign in to comment.