1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-29 06:12:39 +08:00
2021-09-20 22:16:14 +08:00

42 lines
1.2 KiB
VimL

"=============================================================================
" graphql.vim --- graphql layer for SpaceVim
" Copyright (c) 2016-2021 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
" @section lang#graphql, layers-lang-graphql
" @parentsection layers
" @subsection Intro
"
" The lang#graphql layer provides syntax highlighting indent for graphql. To
" enable this layer:
" >
" [layers]
" name = "lang#graphql"
" <
"
" This filetype is automatically selected for filenames ending in .graphql,
" .graphqls, and .gql. If you would like to enable automatic syntax support
" for more file extensions (e.g., *.prisma), add following into bootstrap
" function.
" >
" augroup mybootstrap
" au!
" au BufNewFile,BufRead *.prisma setfiletype graphql
" augroup END
" <
function! SpaceVim#layers#lang#graphql#plugins() abort
let plugins = []
call add(plugins, ['jparise/vim-graphql', {'merged' : 0}])
return plugins
endfunction
function! SpaceVim#layers#lang#graphql#health() abort
call SpaceVim#layers#lang#graphql#plugins()
return 1
endfunction