Niklas

Results 103 comments of Niklas

Hey, thanks for reporting! Sadly bugs like these aren't quite easy to fix, as this whole plugin is based around heuristics (regex 😂) which extract all go-interpolation and invokes the...

Thanks for the kind words @mtlynch 🚀 I really liked your "why I quite Google" article btw, nice writing 😄 I'll figure out how to add the funding – it's...

Related to #33 — but in a separate file.

This will be very difficult, as the current implementation kind of depends on the html formatter. In case this project gains enough traction I'll rewrite the parser with this in...

I think this could be quite doable as a long term goal. With the new implementation from #49 I should be able to switch to a different child parser. Once...

Hey there, sadly this is notoriously hard to fix as currently the template is parsed as a tree. The go formatter invokes the prettier html formatter for the contained text,...

@schnerring sorry, I have this nearly fixed – but until the HTML formatter has an option to disable auto-closing tags, I'll have to keep this open. Related prettier issue: https://github.com/prettier/prettier/issues/5665

& support is currently not there. Regarding VSCode, I could consider publishing the plugin as an additional VSCode extension.

If anyone is still interested in using it globally (without installing it to each repository), you'll need to: 1. Have node & npm installed 2. Run `npm i -g prettier...

@cameronelliott there are now examples in the `README.md` and you can play with the plugin on the [playground](https://prettier-plugin-go-template-playground.niklaspor.dev/) 🚀 ![image](https://user-images.githubusercontent.com/13211347/161329170-e284becd-5fd9-46b1-92d9-d2566874cbd5.png)