mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 15:50:06 +08:00
Move lcs to go layer
This commit is contained in:
parent
a7cf243844
commit
1e7cc8bd11
@ -55,6 +55,12 @@ function! SpaceVim#layers#lang#go#config() abort
|
|||||||
call SpaceVim#mapping#gd#add('go', function('s:go_to_def'))
|
call SpaceVim#mapping#gd#add('go', function('s:go_to_def'))
|
||||||
endif
|
endif
|
||||||
call SpaceVim#mapping#space#regesit_lang_mappings('go', function('s:language_specified_mappings'))
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:go_to_def() abort
|
function! s:go_to_def() abort
|
||||||
|
@ -34,10 +34,6 @@ function! SpaceVim#layers#ui#config() abort
|
|||||||
else
|
else
|
||||||
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#d5c4a1')
|
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#d5c4a1')
|
||||||
endif
|
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_char = get(g:, 'indentLine_char', '┊')
|
||||||
let g:indentLine_concealcursor = 'niv'
|
let g:indentLine_concealcursor = 'niv'
|
||||||
let g:indentLine_conceallevel = 2
|
let g:indentLine_conceallevel = 2
|
||||||
|
Loading…
Reference in New Issue
Block a user