Feature: GraphQL CMP Support
Issues
- [X] I have checked existing issues and there are no existing ones with the same request.
Feature description
Hey there,
I checked the last releases and was happy to see you have GQL support, now.
Maybe you can implement something similiar to this: https://github.com/mistweaverco/kulala.nvim/blob/813a1d20cb8eb975c073c04c0761a59420d52bd8/lua/kulala/graphql/init.lua?plain=1#L10
Where you offer a public function for downloading a gql schema.
Then your users could also use this https://github.com/mistweaverco/kulala-cmp-graphql.nvim
It basically offers the users auto-complete on the GraphQL Query/Mutation
Which might be really awesome, if we have a collab on this :+1:
Thank you so much for pointing out the code reference. I wanted to support existing kulala-cmp-graphql.nvim but have no idea how to deal with gql schemas.
This will be really helpful. I’ll take a look about how gql schema works this weekend.
Hey @boltlessengineer and @NTBBloodbath do you guys mind if I just open an ugly PR that implements this basic functinoality and you can just rework that, so it fits your coding standards?
It might be easier for both of you to just edit already working code.
Quick sidenote: rest.nvim is already mentioned in the https://github.com/mistweaverco/kulala-cmp-graphql.nvim README, so people know that it's not tied to a specific tool and they are free to use whatever works best for them.
@gorillamoe That would be even more helpful! It is always better to let people who knows the feature more to implement what they want. :)
Planning on supporting this via kulala language server without the need to download a schema file.