These changes occur since the move from format-all to apheleia in the format module.
Apheleia uses prettier to format the web-mode buffer. Prettier is unable to handle natively go templates and does not handle global customisation, only per project ones. To solve this, you can create a .prettierrc file at the root of your project and add the content given here Don’t forget to install the node plugin itself. This works but I hate having to set this per project.
Another solution would be to use the lsp formater. html-ls does the trick and works natively perfectly. BUT (!)… It seems that the format module keeps on using the apheleia’s formater, which is NOT the way it should perform as written in the doomemacs’ doc.
Can anyone have a look on this strange behavior which might be a bug please ?
Yep… same thing here. That’s why I Hope to find a solution and use the lsp formater. It works well when running +format/buffer (which should be hooked to after-save-hook but I can’t find the modules line where it is done. I’ll have a look at the discord channel.
The Discord server offers a solution which works great and doesn’t need an additional node plugin to be installed ! See here While waiting for a built-in solution, you can add this to your config.el
Thank you for the help!
What I found is, if I save the file, it formats it to single line and then if I do C-z (undo), it resets the formatting but doesn’t “modify” the file.