The grammars in the tree-sitter package and nvim-treesitter package are
not the same. The grammars in the nvim-treesitter package are directly
taken from the grammars supported by the plugin, whereas tree-sitter
grammars are hard-coded in nixpkgs.
This means that there are more tree-sitter grammars available from
nvim-treesitter rather than tree-sitter.
* plugins/languages/treesitter: change default value for parserInstallDir
* better document parserInstallDir
Co-authored-by: Pedro Alves <pta2002@pta2002.com>
As treesitter-refactor is a treesitter module we need a way to pass
extra configuration options to the treesitter setup. This is done
through a `moduleConfig` attrset. This set should not be used outside
nixvim.
This represents a major rearchitecture for nixvim, so I'm leaving this up to track the progress for now, and to serve as a reference for any breaking changes during transition.
The main change is, of course, being able to use nixvim standalone. To do this, you should use the new build function, which takes in two arguments: the system architecture (e.g. x86_64-linux) and the configuration. For the new configuration, do not use the programs.nixvim. prefix.
For module development, the main change is that you should no longer prefix your modules with programs.nixvim..
This fixes weird issues where you might get errors about libstdc++ after
updating your system without running :TSInstall again. Fixes it by just
relying on Nix to do the managing itself!
Unfortunately, for now this still needs work: you can't select which
languages are to be installed, which is why it's off by default. In the
hopefully not-too-distant future, this will be the default, and the
other way will be deprecated.