consider making parsers that are not bundled with neovim optdepends
Description:
Since !3 (merged) the neovim package depends on several treesitter parsers, some of which are not bundled upstream. According to :help treesitter
, only parsers for C, Lua, and Vimscript are bundled upstream.
Would it be possible to make the neovim package only depend on those parsers which are bundled upstream, and optdepend on all other parsers?
The reason is that some users might not want to use certain parsers, and might not welcome automatic switching from the basic regex-based highlighting to treesitter-based highlighting because it can come with unexpected changes. E.g., when I upgraded my system yesterday, my markdown highlighting got broken, because the treesitter markdown parser which was automatically installed and used uses different highlight groups.
A possible workaround for users would be to manually disable all parsers in their nvim-treesitter config, but this list would have to be kept up-to-date as new parsers come in or change their name, so it's not ideal.
Additional info
I assume that it's clear from the description, so I have not included any additional info or reproduction steps. Please correct me if I'm wrong.