1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 11:01:34 +08:00
SpaceVim/autoload/SpaceVim/layers/lang/json.vim
Seong Yong-ju cfbb6b6d8c Improve json layer
Disable syntax concealing for comfortable edit. Set foldmethod to
syntax.
2018-02-21 00:21:01 +09:00

27 lines
809 B
VimL

"=============================================================================
" json.vim --- lang#json layer
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#lang#json#plugins() abort
let plugins = []
call add(plugins, ['elzr/vim-json', { 'on_ft' : ['javascript','json']}])
return plugins
endfunction
function! SpaceVim#layers#lang#json#config() abort
" elzr/vim-json {{{
" conceal by default
let g:vim_json_syntax_conceal = 0
" }}}
augroup SpaceVim_d_lang_json
autocmd!
autocmd FileType json setlocal foldmethod=syntax
augroup END
endfunction