1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00

add graphql layer with lang#graphql layer (#2287)

* add graphql layer to docs

* add graphql layer to add graphql file support
This commit is contained in:
Pieter Joost van de Sande 2018-11-24 16:16:52 +01:00 committed by Wang Shidong
parent 64ac875247
commit 7a8d1c7bcb
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,13 @@
"=============================================================================
" graphqlfile.vim --- layer for editing graphql files
" Copyright (c) 2018 Pieter Joost van de Sande & Contributors
" Author: Pieter Joost van de Sande < pj at born2code.net >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#lang#graphql#plugins() abort
let plugins = []
call add(plugins, ['jparise/vim-graphql', {'merged' : 0}])
return plugins
endfunction

View File

@ -0,0 +1,31 @@
---
title: "SpaceVim lang#graphql layer"
description: "This layer adds graphql file support to SpaceVim"
---
# [Available Layers](../../) >> lang#graphql
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Features](#features)
- [Install](#install)
<!-- vim-markdown-toc -->
## Description
This layer adds graphql file support to SpaceVim.
## Features
- syntax highlighting
## Install
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#graphql"
```