chottolabs / kznllm.nvim

Apache License 2.0
33 stars 8 forks source link

Enable jinja whitespace control #18

Closed dceluis closed 2 months ago

dceluis commented 2 months ago

Minijinja allows enabling lstrip_blocks and trim_blocks, which allows templates to be written naturally, with each block on its own line.

For reference: https://jinja.palletsprojects.com/en/3.0.x/templates/#whitespace-control

If needed, I can rewrite the templates without the {%- -%} and the blocks on a new line. Or you can just leave this on and progressively update them at your convenience.

Cheers and thanks for a great plugin.

chottolabs commented 2 months ago

i can't believe my eyes 🥹

it's probably going to be very tedious so I'll just go in and fix them at some point, thanks a ton for sharing