Simple highlighting & tooling support for the Gren programming language implemented in the Native Treesit package
Comes with
M-x gren-formatto quickly format your code using thegren formatcommand!
Simply add the gren-mode.el package and run M-x gren-ts-mode
This will automatically add the gren tree sitter parser to treesit-language-source-alist so that you can install the parser with:
M-x treesit-install-language-grammar gren
After which, simply open up a gren file and get to coding!
Clone this repository to your local machine.
Add to your config.el:
(use-package! gren-ts-mode
:load-path "PATH_TO_THE_REPOSITORY_CLONE"
)-
Current the gren formatter is a bit broken, if you run the gren format command and you get an error or nothing happens, it is because its ran into a parsing error.
-
The formatting used here is based on the tree-sitter grammar, and probably will not always indent code in a way the gren parser likes, if this happens, please file an issue
