A Vim plugin providing GraphQL file detection, syntax highlighting, and indentation for the GraphQL specification.
GraphQL for Vim is a Vim plugin that provides comprehensive GraphQL language support, including file detection, syntax highlighting, and indentation. It helps developers write and edit GraphQL queries and schemas directly within Vim, supporting both standalone GraphQL files and GraphQL code embedded in other languages like JavaScript, TypeScript, and PHP.
Vim and Neovim users who work with GraphQL APIs, whether writing standalone GraphQL files or embedding GraphQL within JavaScript, TypeScript, or other supported languages.
Developers choose this plugin for its accurate, up-to-date support of the GraphQL specification, seamless integration with Vim's ecosystem, and extensive embedded language support that works out-of-the-box with popular language plugins.
A Vim plugin that provides GraphQL file detection, syntax highlighting, and indentation.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Targets the September 2025 GraphQL specification, ensuring syntax highlighting is up-to-date with the latest language features, as stated in the README.
Provides syntax highlighting for GraphQL embedded in JavaScript, TypeScript, ReasonML, ReScript, PHP, Vue, and JSX/TSX, detailed in the README's language-specific sections.
Automatically sets the graphql filetype for .gql, .graphql, and .graphqls files, integrating seamlessly with Vim's workflow without manual configuration.
Allows configuration of GraphQL tag names and functions via Vim variables like g:graphql_javascript_tags, offering flexibility for different codebases, as explained in the JavaScript support section.
The plugin does not include Language Server Protocol support, so features like intelligent completion or error checking require additional tools like coc.nvim with a GraphQL language server, as admitted in the README.
For full TypeScript support in older Vim versions, it depends on the yats plugin, which can complicate setup and maintenance, adding overhead for users.
Embedded syntax highlighting is only available for a specific set of languages; GraphQL in other common languages is not supported, limiting its utility in polyglot projects.
Adding syntax support for non-standard file extensions requires creating custom autocommand files, which adds setup steps and can be error-prone for users.