Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add tree-sitter parsers to the runtimepath asap #562

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

mrcjkb
Copy link
Member

@mrcjkb mrcjkb commented Oct 17, 2024

Fixes #561

Comment on lines +170 to +172
-- Make autoload scripts available
-- Since we're invoking this in the :h load-plugins phase of the startup sequence,
-- this packadd! call won't result in any scripts being sourced.
Copy link
Member Author

Choose a reason for hiding this comment

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

Discussion for another issue:
Perhaps we don't actually need this.
It could potentially lead to the subtle issues, because the packadd is delayed (it's async). Neovim only searches for colorschemes in pack/*/opt, but not autoload scripts or tree-sitter parsers, which is why I had added this.

But perhaps it's better for now not to support autoload scripts as dependencies. It's not really common in the lua ecosystem anyway.

@mrcjkb mrcjkb merged commit 752cecf into master Oct 17, 2024
11 checks passed
@mrcjkb mrcjkb deleted the mj/push-trozsmynxoox branch October 17, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parser dependencies don't start automatically
2 participants