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

feat: Add templ support #344

Merged
merged 3 commits into from
Feb 19, 2025
Merged

Conversation

alanpearce
Copy link
Contributor

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
Contributor 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
@10sr 10sr changed the title WIP: feat: Add templ support feat: Add templ support Feb 19, 2025
@10sr 10sr merged commit 1a99427 into editorconfig:master Feb 19, 2025
11 checks passed
@alanpearce alanpearce deleted the feat/templ-ts-mode branch February 19, 2025 15:51
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