From 1e7cc8bd11416482097c5d267999689b47d1af77 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 25 Mar 2018 21:00:44 +0800 Subject: [PATCH] Move lcs to go layer --- autoload/SpaceVim/layers/lang/go.vim | 6 ++++++ autoload/SpaceVim/layers/ui.vim | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) 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