然後我就跟theme一樣一邊參考別人的一邊再重做一個
完整程式碼在此ouo.vim
我盡量註解了
前景背景粗體都可以改
主要是加入以下來呈現,詳細就去完整版看吧
let s:W = [s:gui_warningfg, s:gui_warningbg, s:cterm_warningfg, s:cterm_warningbg, 'bold'] let s:E = [s:gui_errorfg, s:gui_errorbg, s:cterm_errorfg, s:cterm_errorbg, 'bold']
let g:airline#themes#ouo#palette.normal.airline_warning = s:W let g:airline#themes#ouo#palette.normal.airline_error = s:E let g:airline#themes#ouo#palette.normal_modified = { \ 'airline_c': [s:gui_alert, s:gui_termbg2, s:cterm_alert, s:cterm_termbg2, 'bold'], \ 'airline_warning': s:W, \ 'airline_error': s:E}
參考資料:
kbenzie/fresh.vim
Q: Change color of ycm warning part #1082
沒有留言:
張貼留言