hush-shell / hush

Hush is a unix shell based on the Lua programming language
MIT License
658 stars 23 forks source link

External: Neovim syntax highlighting and static checks #35

Open MikaelElkiaer opened 1 year ago

MikaelElkiaer commented 1 year ago

Hiya, did not know where to put this, so just putting it here for now in case anyone else is interested.

I made a tree-sitter grammar for Hush - along with set-up instructions: https://github.com/MikaelElkiaer/tree-sitter-hush

And a simple null-ls set-up as well: https://github.com/MikaelElkiaer/nvim-config/blob/d2ef0b9fcd9d173e54748c7ea974ef48ca0f4745/lua/user/lsp/null-ls.lua#L11

These two will provide syntax highlighting and static checks in Neovim.

gahag commented 1 year ago

That's amazing! Thanks a lot for the effort. Feel free to open a pull request if you'd like to submit this upstream. We have the syntax highlight directory with code supporting multiple editors, so I believe this would be a great fit.