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

Suggestion: derive templ-ts-mode from web-mode instead of prog-mode #7

Open
drshapeless opened this issue Feb 24, 2024 · 2 comments
Open

Comments

@drshapeless
Copy link

Since templ is mostly html, web-mode in Emacs is very good at editing html, features like auto closing tag, property and class name auto-completion.

I think it would be great for templ-ts-mode to derive from web-mode to inherit those advantages.

I tried, however it didn't work.

@drshapeless
Copy link
Author

I wrote a huge amount of custom function to let myself have tailwindcss and html tag completion, even htmx in templ-ts-mode. The details can be read in my blog post. https://drshapeless.com/blog/posts/writing-go-templ-with-emacs.html

@danderson
Copy link
Owner

As far as I know, pre-treesitter and treesitter modes don't interact well with each other, so I don't think deriving from web-mode will ever work. Also if we derived from anything it'd probably be go-mode, because the LSP is effectively a proxy for go's LSP.

This is a problem with emacs in general when mixing multiple languages, in this new world we really need the LSP to be feature-complete to make useful progress :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants