rest.nvim icon indicating copy to clipboard operation
rest.nvim copied to clipboard

Feature: GraphQL CMP Support

Open gorillamoe opened this issue 1 year ago • 3 comments

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:

gorillamoe avatar Sep 06 '24 05:09 gorillamoe

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.

boltlessengineer avatar Sep 06 '24 16:09 boltlessengineer

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 avatar Sep 10 '24 07:09 gorillamoe

@gorillamoe That would be even more helpful! It is always better to let people who knows the feature more to implement what they want. :)

boltlessengineer avatar Sep 10 '24 09:09 boltlessengineer

Planning on supporting this via kulala language server without the need to download a schema file.

gorillamoe avatar Feb 26 '25 18:02 gorillamoe