‘lua-ts-mode’ is an Emacs major mode for editing Lua files.
NOTE: This mode is built-in to Emacs 30, incompatible with older
versions and only tested against the Emacs master branch. Unless
you have a specific reason to install this version then you should
stick with the built-in version.
If your operating system does not have a ‘tree-sitter-lua’ package
you can install the grammar from within Emacs:
M-x treesit-install-language-grammar RET lua RET y
https://github.com/tree-sitter-grammars/tree-sitter-lua RET RET RET RET RET RET
To install the mode:
M-x package-vc-install RET https://git.sr.ht/~johnmuhl/lua-ts-mode
To upgrade the mode (after it has been installed):
M-x package-vc-upgrade RET lua-ts-mode