Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lua/treesitter-modules/core/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ function M.init()
return
end
if M.config.auto_install and not M.installed:has(language) then
ts.install(language):await(function()
M.installed:add(language)
M.attach(buf, language)
ts.install(language):await(function(err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what situations does installation fail? Is it for languages that don't have a parser or does it just sometimes happen?

if not err then
M.installed:add(language)
M.attach(buf, language)
end
end)
end
end,
Expand Down