zed-stimulus icon indicating copy to clipboard operation
zed-stimulus copied to clipboard

Haml support

Open Otterpocket opened this issue 1 year ago • 4 comments

Is it possible for the extension to also support haml files?

Otterpocket avatar Jun 12 '24 14:06 Otterpocket

Hi. Unfortunately, no. In order to support HAML templates, we need to get HAML support in Zed first. Zed relies on tree-sitter grammars to provide basically everything it has: syntax highlighting, LSP support and other functionalities. I am working on a tree-sitter grammar for HAML but I can't say when it will be ready to add it to the Ruby extension for Zed.

vitallium avatar Jun 17 '24 15:06 vitallium

Hi. Unfortunately, no. In order to support HAML templates, we need to get HAML support in Zed first. Zed relies on tree-sitter grammars to provide basically everything it has: syntax highlighting, LSP support and other functionalities. I am working on a tree-sitter grammar for HAML but I can't say when it will be ready to add it to the Ruby extension for Zed.

Well that's great news that you were working on it, I set out to do it but couldn't find an existing tree sitter grammar. However, I looked recently and I found a (now deleted HAML tree sitter), I think it used to be in the NVIM repo.

Otterpocket avatar Jun 17 '24 15:06 Otterpocket

Tree-sitter grammar for HAML is here - https://github.com/vitallium/tree-sitter-haml. I will enable HAML support in the next version.

vitallium avatar Oct 16 '24 15:10 vitallium

There is an upstream issue to support HAML by Stimulus LSP https://github.com/marcoroth/stimulus-lsp/issues/51

vitallium avatar Oct 16 '24 15:10 vitallium