mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-16 16:57:10 +08:00
mount none X that 16-colors tty (my ubuntu's Ctrl+Alt+F1)
This commit is contained in:
@@ -14,8 +14,8 @@ endif
|
|||||||
let g:indentLine_loaded = 1
|
let g:indentLine_loaded = 1
|
||||||
|
|
||||||
|
|
||||||
let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" ? '¦' : '|'))
|
let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|'))
|
||||||
let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" ? '¦' : '|'))
|
let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|'))
|
||||||
let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10)
|
let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10)
|
||||||
let g:indentLine_enabled = get(g:,'indentLine_enabled',1)
|
let g:indentLine_enabled = get(g:,'indentLine_enabled',1)
|
||||||
let g:indentLine_fileType = get(g:,'indentLine_fileType',[])
|
let g:indentLine_fileType = get(g:,'indentLine_fileType',[])
|
||||||
@@ -52,8 +52,19 @@ function! s:InitColor()
|
|||||||
let gui_color = g:indentLine_color_gui
|
let gui_color = g:indentLine_color_gui
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if ! exists("g:indentLine_color_tty")
|
||||||
|
if &background is# "light"
|
||||||
|
let tty_color = 4
|
||||||
|
else
|
||||||
|
let tty_color = 2
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let tty_color = g:indentLine_color_tty
|
||||||
|
endif
|
||||||
|
|
||||||
execute "highlight Conceal ctermfg=" . term_color . " ctermbg=NONE"
|
execute "highlight Conceal ctermfg=" . term_color . " ctermbg=NONE"
|
||||||
execute "highlight Conceal guifg=" . gui_color . " guibg=NONE"
|
execute "highlight Conceal guifg=" . gui_color . " guibg=NONE"
|
||||||
|
execute "highlight Conceal cterm=bold ctermfg=" . tty_color . " ctermbg=NONE"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"{{{1 function! s:SetIndentLine()
|
"{{{1 function! s:SetIndentLine()
|
||||||
|
|||||||
Reference in New Issue
Block a user