To initialize in the current project, copy the following command:
nix flake init --template "https://flakehub.com/f/simondeeley/tree-sitter-dev/0.1.0"
Alternatively, you can initialize the template in a new project by running:
nix flake new --template "https://flakehub.com/f/simondeeley/tree-sitter-dev/0.1.0" ${NEW_PROJECT_DIRECTORY}
Once the template has been initialized, you can use the provided shell in two ways:
- If you have [
nix-direnv
][nix-direnv] installed, you can initialize the environment by runningdirenv allow
. - If you don't have
nix-direnv
installed, you can runnix develop
to open up the Nix-defined shell.
- [Node.js][node] 18.16.1
- [Node.js][node-gyp] 10.2.0
- [npm] 9.5.1
- [tree-sitter] 0.24.6
tree-sitter
is a parser generator for programming languages. It is designed to be fast, small, and embeddable. It is used by many popular editors and IDEs to provide syntax highlighting and code completion. To read more about tree-sitter
, visit the official website.
If you'd like to contribute to this template, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.