GraphQL support for Sublime's LSP plugin.
Uses graphql-language-service-server to provide diagnostics, autocomplete suggestions, definitions and other features for GraphQL files or blocks. See linked repository for more information.
- Install LSP, GraphQL Sublime Package and
LSP-graphql
from Package Control. - Restart Sublime.
Server requires that your project includes a configuration file that defines the schema
URL at least. Refer to server configuration file for more details.
Open configuration file using command palette with Preferences: LSP-graphql Settings
command or opening it from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-graphql
).