mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-12 18:34:36 +02:00
build: deprecated treesitter method
This commit is contained in:
parent
02c5e8d953
commit
36aa64bc0b
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ function M.plugins(path)
|
|||
|
||||
local function find_plugins(node)
|
||||
if node:type() == "string" then
|
||||
local text = vim.treesitter.query.get_node_text(node, source):sub(2, -2)
|
||||
local text = vim.treesitter.get_node_text(node, source):sub(2, -2)
|
||||
if text:find("/") and #node:parent():field("name") == 0 then
|
||||
local plugin_node = node:parent():parent()
|
||||
if plugin_node:named_child(0):field("value")[1]:id() ~= node:id() then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue