-
-
Notifications
You must be signed in to change notification settings - Fork 843
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
Try to fix indentation for <template> ... </template> #6054
base: master
Are you sure you want to change the base?
Conversation
Are you sure? I think it's just the filetype being incorrect here.
|
correct -- maybe I need to configure an offset? (I don't know how to do that) |
But tree-sitter-glimmer do know though? It's the fact that Consider adding a line of |
I don't think that's correct. tree-sitter-glimmer is for the sub-language within Injection declared here:
Is this something other language libraries do? (registering themselves?) If so, tree-sitter-javascript is the correct parser for gjs. One thing I've been trying to figure out, is where is the right place to fix indentation of const Two = <template>|</template>; (press enter) const Two = <template>
|</template>; it should be this instead: const Two = <template>
|
</template>; something needs to tell the inner syntax (tree-sittter-glimmer) to offset all indentation by an additional $OFFSET_SIZE (whatever that is) when I created this PR, I didn't notice that I had a conflicting indent plugin installed (conflicting may be a bit strong), but best to test without. I've disabled https://github.com/VidocqH/auto-indent.nvim |
That's not really because of the indentexpr. |
Currently, when I press
Enter
in ablock,
the cursor goes all the way to the left, rather than being indented.
I'm still trying to figure out how to test things locally, so this isn't ready for review or merge.