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

WIP: feat: Add templ support #344

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alanpearce
Copy link

Support templ templates via templ-ts-mode.

Indentation rules

Unfortunately, this doesn't seem to work yet. describe-editorconfig-properties shows tab_width/indent_size set to the value expected from .editorconfig, but go-ts-mode-indent-offset remains at its default value, even if I call editorconfig-apply myself. Running (setq-local go-ts-mode-indent-offset 2) does change the indentation as expected.

Help appreciated 😅

@alanpearce alanpearce marked this pull request as draft June 16, 2024 13:49
@10sr 10sr self-assigned this Aug 13, 2024
@10sr
Copy link
Member

10sr commented Aug 13, 2024

@alanpearce
Hi!
I tried this and saw go-ts-mode-indent-offset was successfully configured for a *.templ file, so as for me it seems to be OK. Does this not work yet in your environment?

@alanpearce
Copy link
Author

Hmm, it does seem to work for me now. Not sure what happened in the meantime.

@alanpearce alanpearce marked this pull request as ready for review December 4, 2024 14:59
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

Successfully merging this pull request may close these issues.

2 participants