-
-
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
The plugin does not work #16
Comments
What is the output of the |
Result of
|
I can't reproduce your problem using |
I think it would be great to put in the README something saying what the file extension should be and under what circumstances the user should expect highlighting or other behavior. I've had this installed for months and it's never once worked because I expected it to work like JSX and somehow find the graphql syntax amongst my JS. Then I forgot about the plugin. Evidently from this screenshot that's not how it works. I just now did a comand-F on the github page and searched Perhaps users should read the spec or the source to understand the above, but they are probably not going to do that 🤷♂️ and a little hand-holding might get more people to use this. |
That's good feedback, @johnelliott. I added some more In terms of this issue, I see from the screenshot that @dominikduda has loaded a file with a |
@jparise looks great now. There’s no missing it. I’ll try this out this week. I’m not totally sure if my team will end up using files with a bare query in them. At the moment we tend to use them as JavaScript template literals with substitution so they don’t end up being a .gql file. It’s usually wrapped with JavaScript. |
@johnelliott, that workflow is also supported if you use e.g. an ES6 Unfortunately, you'll need to also install the vim-javascript plugin because vim's built-in JavaScript syntax doesn't specifically recognized tagged template literals. |
Closing this due to lack of information. Please open when you have more details. |
So I installed the plugin via plug.
Entering
.graphql
file and it looks as follows (no syntax highlight):Did I forget something?
The text was updated successfully, but these errors were encountered: