mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 02:44:39 +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)
|
local function find_plugins(node)
|
||||||
if node:type() == "string" then
|
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
|
if text:find("/") and #node:parent():field("name") == 0 then
|
||||||
local plugin_node = node:parent():parent()
|
local plugin_node = node:parent():parent()
|
||||||
if plugin_node:named_child(0):field("value")[1]:id() ~= node:id() then
|
if plugin_node:named_child(0):field("value")[1]:id() ~= node:id() then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue