diff --git a/autoload/SpaceVim/layers/lang/go.vim b/autoload/SpaceVim/layers/lang/go.vim index decbb5f35..bc0abdbc2 100644 --- a/autoload/SpaceVim/layers/lang/go.vim +++ b/autoload/SpaceVim/layers/lang/go.vim @@ -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 diff --git a/autoload/SpaceVim/layers/ui.vim b/autoload/SpaceVim/layers/ui.vim index bf611ec4d..ee44b9742 100644 --- a/autoload/SpaceVim/layers/ui.vim +++ b/autoload/SpaceVim/layers/ui.vim @@ -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