1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:50:05 +08:00

Move lcs to go layer

This commit is contained in:
wsdjeg 2018-03-25 21:00:44 +08:00
parent a7cf243844
commit 1e7cc8bd11
2 changed files with 6 additions and 4 deletions

View File

@ -55,6 +55,12 @@ function! SpaceVim#layers#lang#go#config() abort
call SpaceVim#mapping#gd#add('go', function('s:go_to_def'))
endif
call SpaceVim#mapping#space#regesit_lang_mappings('go', function('s:language_specified_mappings'))
augroup spacevim_layer_lang_go
autocmd!
" Add indentation level to tab-indentated files.
" Note: there is a blank space at the end of the late backslash
autocmd FileType go setl list lcs=tab:\┊\
augroup END
endfunction
function! s:go_to_def() abort

View File

@ -34,10 +34,6 @@ function! SpaceVim#layers#ui#config() abort
else
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#d5c4a1')
endif
" Add indentation level to tab-indentated files.
" Note: there is a blank space at the end of the late backslash
autocmd FileType go set list lcs=tab:\┊\
let g:indentLine_char = get(g:, 'indentLine_char', '┊')
let g:indentLine_concealcursor = 'niv'
let g:indentLine_conceallevel = 2