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

Indent file has incorrect spacing when enter after certain lines #35

Open
MarkCodesTheWeb opened this issue Aug 28, 2022 · 1 comment
Open

Comments

@MarkCodesTheWeb
Copy link

I'm not really sure how to explain this one but when I click "enter/return" after certain characters it goes to position 200 on the next line.

For example with the following snippet:

{% block content %}
{{ Content | safe }}
{% endblock %}

If I click return after the first %} or the first }} it will put me on the next line at position 200 (so it's indenting 200 spaces). But if I click return after the last %} it goes to the next line as normal.

My solution, for now, is to just not use the indent file but it would be nice to have it indent properly. I don't understand the script enough to see what is causing this to happen though.

I'm using Astro Vim's default settings and this is the only additional plugin I've added. All the highlighting is working correctly.

@MarkCodesTheWeb
Copy link
Author

I forgot to mention, this is in an .njk file. I don't know if that makes any difference.

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

No branches or pull requests

1 participant