mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +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:
parent
64ac875247
commit
7a8d1c7bcb
13
autoload/SpaceVim/layers/lang/graphql.vim
Normal file
13
autoload/SpaceVim/layers/lang/graphql.vim
Normal 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
|
31
docs/layers/lang/graphql.md
Normal file
31
docs/layers/lang/graphql.md
Normal 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"
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user