-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Odd comment indentation behavior #4
Comments
I can reproduce this and will look into it soon. Thanks for the bug report! |
This appears to be
I'll have to consider whether this is something that should be changed / overridden by this plugin, perhaps by implementing our own indent rules, although I'm also reluctant to make things too complex for this case. |
I'm still thinking about whether the plugin should set |
I decided to just implement my own indentation rules that supersede |
Thank you @jparise, will do! |
Hiya, this is a great plugin that's been very helpful! I've run into an indentation quirk recently that doesn't seem intended. Steps to repro:
Set these Vim options:
Make a
user.graphql
file with some contents likePlace your cursor on the first line and press
o
to insert a new line. You'll see something like this:Now start a comment by pressing
#
. I expect to see this:But instead I see this:
Additionally, when I try to indent the comment line with
>>
, nothing happens.It seems Vim wants to force me to use no indentation for all comments, but I don't see any places in the GraphQL spec (or any style guides anywhere) that mention this behavior.
I'm using Neovim 0.2.0 if it helps.
The text was updated successfully, but these errors were encountered: