Skip to content

Commit

Permalink
fix: don't use deprecated query.get_node_text() call (nvim-neorg#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
linguini1 authored and benlubas committed Jan 11, 2024
1 parent dd293e3 commit a49be47
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 a49be47

Please sign in to comment.