Skip to content

nsensfel/gren-ts-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial Emacs Gren Lang Package!

Simple highlighting & tooling support for the Gren programming language implemented in the Native Treesit package

Comes with M-x gren-format to quickly format your code using the gren format command!

Screenshot of the Gren 'Counter' example using this packages gren-mode


Setting Up

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!

Setting Up in DOOM Emacs

Clone this repository to your local machine. Add to your config.el:

(use-package! gren-ts-mode
	:load-path "PATH_TO_THE_REPOSITORY_CLONE"
)

Notes

  • 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

TODOS

About

Simple highlighting & tooling support for the Gren programming language implemented in the Native Treesit package

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • Emacs Lisp 100.0%