mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:40:06 +08:00
Fix indentline (#1447)
This commit is contained in:
parent
47c12691a4
commit
845227edde
@ -109,7 +109,6 @@ function! s:neomake_cursor_move_delay() abort
|
||||
endfunction
|
||||
|
||||
let s:last_echoed_error = ''
|
||||
let s:clv = &conceallevel
|
||||
function! s:neomake_signatures_current_error(...) abort
|
||||
call s:neomake_signatures_clear()
|
||||
try
|
||||
@ -128,7 +127,6 @@ function! s:neomake_signatures_current_error(...) abort
|
||||
return
|
||||
endif
|
||||
let s:last_echoed_error = message
|
||||
set conceallevel=2
|
||||
if len(line('.') + 1) > len(message)
|
||||
let message = s:STRING.fill(message, len(line('.') + 1))
|
||||
endif
|
||||
@ -140,7 +138,6 @@ function! s:neomake_signatures_clear() abort
|
||||
call timer_stop(s:neomake_cursormoved_timer)
|
||||
endif
|
||||
let s:last_echoed_error = ''
|
||||
let &conceallevel = s:clv
|
||||
call s:SIG.clear()
|
||||
endfunction
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
scriptencoding utf-8
|
||||
function! SpaceVim#layers#ui#plugins() abort
|
||||
let plugins = [
|
||||
\ ['Yggdroot/indentLine'],
|
||||
\ ['Yggdroot/indentLine', {'merged' : 0}],
|
||||
\ ['majutsushi/tagbar', {'loadconf' : 1}],
|
||||
\ ['tenfyzhong/tagbar-makefile.vim', {'merged': 0}],
|
||||
\ ['tenfyzhong/tagbar-proto.vim', {'merged': 0}],
|
||||
@ -29,11 +29,16 @@ function! SpaceVim#layers#ui#plugins() abort
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#ui#config() abort
|
||||
if g:spacevim_colorscheme_bg == 'dark'
|
||||
let g:indentLine_color_term = get(g:, 'indentLine_color_term', 239)
|
||||
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#09AA08')
|
||||
let g:indentLine_char = get(g:, 'indentLine_char', '¦')
|
||||
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#504945')
|
||||
else
|
||||
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#d5c4a1')
|
||||
endif
|
||||
let g:indentLine_char = get(g:, 'indentLine_char', '┊')
|
||||
let g:indentLine_concealcursor = 'niv'
|
||||
let g:indentLine_conceallevel = 2
|
||||
let g:indentLine_fileType = ['*']
|
||||
let g:indentLine_fileTypeExclude = ['help', 'man', 'startify', 'vimfiler']
|
||||
let g:signify_disable_by_default = 0
|
||||
let g:signify_line_highlight = 0
|
||||
|
@ -186,27 +186,6 @@ function! zvim#util#listDirs(dir) abort
|
||||
return []
|
||||
endfunction
|
||||
|
||||
function! zvim#util#OpenVimfiler() abort
|
||||
if bufnr('vimfiler') == -1
|
||||
silent VimFiler
|
||||
if exists(':AirlineRefresh')
|
||||
AirlineRefresh
|
||||
endif
|
||||
wincmd p
|
||||
if &filetype !=# 'startify'
|
||||
IndentLinesToggle
|
||||
IndentLinesToggle
|
||||
endif
|
||||
wincmd p
|
||||
else
|
||||
silent VimFiler
|
||||
doautocmd WinEnter
|
||||
if exists(':AirlineRefresh')
|
||||
AirlineRefresh
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let s:plugins_argv = ['-update', '-openurl']
|
||||
|
||||
function! zvim#util#complete_plugs(ArgLead, CmdLine, CursorPos) abort
|
||||
|
@ -1 +1,6 @@
|
||||
noremap <silent> <F3> :call zvim#util#OpenVimfiler()<CR>
|
||||
function! s:open_vimfiler() abort
|
||||
silent VimFiler
|
||||
doautocmd WinEnter
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <F3> :call <SID>open_vimfiler()<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user