Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templ #191

Closed
1 task done
prnk28 opened this issue Feb 4, 2024 · 10 comments
Closed
1 task done

Templ #191

prnk28 opened this issue Feb 4, 2024 · 10 comments
Labels
language A request to add a language extension

Comments

@prnk28
Copy link

prnk28 commented Feb 4, 2024

Check for existing issues

  • 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 prnk28 added the language A request to add a language extension label Feb 4, 2024
@joerdav
Copy link

joerdav commented Feb 6, 2024

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
Copy link

tego101 commented Feb 22, 2024

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

@joerdav
Copy link

joerdav commented Feb 22, 2024

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

@jcrqr
Copy link

jcrqr commented Feb 22, 2024

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

@SomeoneToIgnore
Copy link

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

@jcrqr
Copy link

jcrqr commented Feb 22, 2024

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
Copy link

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.

@JosephTLyons JosephTLyons changed the title Templ Language Support (Golang) Templ Feb 26, 2024
@JosephTLyons JosephTLyons transferred this issue from zed-industries/zed Feb 26, 2024
@joerdav
Copy link

joerdav commented Apr 10, 2024

Looks like this was resolved from a syntax highlighting perspective in #232 we just need lsp support now!

@joefitzgerald
Copy link

LSP support was added via makifdb/zed-templ#2.

@JosephTLyons
Copy link
Collaborator

There is a Templ extension now.

SCR-20240716-mcvr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language A request to add a language extension
Projects
None yet
Development

No branches or pull requests

7 participants