editorconfig-emacs icon indicating copy to clipboard operation
editorconfig-emacs copied to clipboard

WIP: feat: Add templ support

Open alanpearce opened this issue 1 year ago • 1 comments

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 :sweat_smile:

alanpearce avatar Jun 16 '24 13:06 alanpearce

@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?

10sr avatar Aug 13 '24 09:08 10sr

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

alanpearce avatar Dec 04 '24 14:12 alanpearce