Skip to content
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

Submit to vim/vim #94

Open
ryu-ichiroh opened this issue Feb 7, 2023 · 4 comments
Open

Submit to vim/vim #94

ryu-ichiroh opened this issue Feb 7, 2023 · 4 comments
Labels

Comments

@ryu-ichiroh
Copy link

Hi jparise.

Do you want to try to add to vim/vim?

jparise/vim-graphql is the most popular plugin for GraphQL.
https://github.com/search?o=desc&q=vim+graphql&s=stars&type=Repositories

Now vim/vim is not support graphql, not even syntax highlighting.
https://github.com/vim/vim/tree/master/runtime/syntax

Of course the rights keep yours.

The following links are a case of rust-lang/rust.vim.

Thanks.

@jparise
Copy link
Owner

jparise commented Feb 12, 2023

That's an interesting idea, @ryu-ichiroh, and not one that I had previously considered.

One potential downside: vim-graphql currently integrates with a few other projects for improved syntax highlighting, such as https://github.com/pangloss/vim-javascript. I think we'd need to give that up if the code was part of vim itself. It might not be a big loss overall, but it's a consideration.

We would also need to rewrite the current test suite in terms of vim's own test assertions rather than Vader. That could be a good project to do in general, although it's not a priority.

@ryu-ichiroh
Copy link
Author

ryu-ichiroh commented Mar 23, 2023

@jparise Thank you for your positive comment!

As for the integrations and testing, vim/vim would not need them and It's enough to import ftplugin/, idnent/, and syntax/.
(I understand that the integration is a great feature and testing make the project keep to reduce errors.)

I made a patch to make it easier for you to submit. https://github.com/ryu-ichiroh/vim/pull/1/files

Most of the code was taken over from vim-graphql, and modified the headers as brammool's comment.
vim/vim#1356 (comment)

@jparise
Copy link
Owner

jparise commented Mar 26, 2023

Thanks, @ryu-ichiroh! I need to give this a little more thought to form a better understanding of what I'm actually signing up to maintain (🙂), but it does seem like a good idea.

@jparise
Copy link
Owner

jparise commented Aug 3, 2024

I'm (slowly) making preparations to contribute some or all of this work to upstream vim. #108 is a recent example that standardizes the scripts based on vim's conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants