zed-industries / extensions

Extensions for the Zed editor
733 stars 295 forks source link

Templ #191

Closed prnk28 closed 1 month ago

prnk28 commented 6 months ago

Check for existing issues

Language

Templ

Tree Sitter parser link

https://github.com/vrischmann/tree-sitter-templ/tree/master

Language server link

https://marketplace.visualstudio.com/items?itemName=a-h.templ

Misc notes

No response

joerdav commented 6 months ago

The language server link here is just pointing at the vscode plugin. The actual LSP can be built from https://github.com/a-h/templ

tego101 commented 6 months ago

I just set the language to GO for now and it does somewhat of a good job.

joerdav commented 6 months ago

Awesome, this might work somewhat for highlighting but the autocomplete and diagnostics capability will require the plugin.

jcrqr commented 6 months ago

if no one's working on this I can give it a shot with the new Zed extensions

SomeoneToIgnore commented 6 months ago

Do note though, that current Zed extensions only support syntax highlights, but not the LSP-related features.

jcrqr commented 6 months ago

thanks for the heads-up @SomeoneToIgnore, are any plans to support LSPs through extensions for the future that you're aware of?

anyway having syntax highlighting would already be useful. I keep having to select Go whenever I open new files, which is a bit tedious.

SomeoneToIgnore commented 6 months ago

Yes, the work is ongoing now as far as I am aware, but that might take time since currently it's closer to prototyping phase.

joerdav commented 4 months ago

Looks like this was resolved from a syntax highlighting perspective in https://github.com/zed-industries/extensions/pull/232 we just need lsp support now!

joefitzgerald commented 3 months ago

LSP support was added via https://github.com/makifdb/zed-templ/pull/2.

JosephTLyons commented 1 month ago

There is a Templ extension now.

SCR-20240716-mcvr