extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Templ

Open prnk28 opened this issue 1 year ago • 9 comments

Check for existing issues

  • [X] Completed

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

prnk28 avatar Feb 04 '24 07:02 prnk28

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

joerdav avatar Feb 06 '24 14:02 joerdav

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

tego101 avatar Feb 22 '24 02:02 tego101

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

joerdav avatar Feb 22 '24 07:02 joerdav

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

jcrqr avatar Feb 22 '24 15:02 jcrqr

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

SomeoneToIgnore avatar Feb 22 '24 15:02 SomeoneToIgnore

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.

jcrqr avatar Feb 22 '24 15:02 jcrqr

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.

SomeoneToIgnore avatar Feb 22 '24 15:02 SomeoneToIgnore

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!

joerdav avatar Apr 10 '24 13:04 joerdav

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

joefitzgerald avatar May 22 '24 18:05 joefitzgerald

There is a Templ extension now.

SCR-20240716-mcvr

JosephTLyons avatar Jul 16 '24 17:07 JosephTLyons