Skip to content

Commit 68e4611

Browse files
committed
fix treesitter main
1 parent f379906 commit 68e4611

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/tests/install-parsers.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ require('nvim-treesitter').install(parsers, { force = true }):wait(1800000) -- w
1717

1818
-- Verify installation
1919
print("Verifying parser installation...")
20-
local install_info = require('nvim-treesitter.info')
21-
local installed = install_info.installed_parsers()
22-
print('Installed parsers: ' .. vim.inspect(installed))
2320

2421
for _, parser in ipairs(parsers) do
25-
if vim.tbl_contains(installed, parser) then
22+
local ok = pcall(vim.treesitter.language.add, parser)
23+
if ok then
2624
print("✓ Parser " .. parser .. " successfully installed")
2725
else
2826
print("✗ Parser " .. parser .. " failed to install")

0 commit comments

Comments
 (0)