From cfbb6b6d8c1b9691a12d15e37ed0b242c84ca1f3 Mon Sep 17 00:00:00 2001 From: Seong Yong-ju Date: Wed, 21 Feb 2018 00:21:01 +0900 Subject: [PATCH 1/2] Improve json layer Disable syntax concealing for comfortable edit. Set foldmethod to syntax. --- autoload/SpaceVim/layers/lang/json.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoload/SpaceVim/layers/lang/json.vim b/autoload/SpaceVim/layers/lang/json.vim index bbd5915de..f7b2846f2 100644 --- a/autoload/SpaceVim/layers/lang/json.vim +++ b/autoload/SpaceVim/layers/lang/json.vim @@ -14,5 +14,13 @@ 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 From 89ae257ff5950b34ca7e702fff8984bf5a6413cf Mon Sep 17 00:00:00 2001 From: Seong Yong-ju Date: Wed, 21 Feb 2018 00:23:51 +0900 Subject: [PATCH 2/2] Fix github layer Fix "SPC g h p" won't work correctly due to typo. --- autoload/SpaceVim/layers/github.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/github.vim b/autoload/SpaceVim/layers/github.vim index 58eedcaed..6e3883d26 100644 --- a/autoload/SpaceVim/layers/github.vim +++ b/autoload/SpaceVim/layers/github.vim @@ -70,6 +70,6 @@ function! SpaceVim#layers#github#config() abort call SpaceVim#mapping#space#def('nnoremap', ['g', 'h', 'I'], \ 'OpenGithubIssue', 'show issues in browser', 1) call SpaceVim#mapping#space#def('nnoremap', ['g', 'h', 'p'], - \ 'OpenGithubPullRequests', 'show PRs in browser', 1) + \ 'OpenGithubPullReq', 'show PRs in browser', 1) "" }}} endfunction