dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4b43600a9c63ef372f938f69c4875134e4809337
parent cec1e50ce36c668bc6c6d45ab01576979f2059cc
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  8 Mar 2019 10:44:46 +0100

Disable coloring of status bar

Diffstat:
Mlinks/.vim/plugin/appearance.vim | 28++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/links/.vim/plugin/appearance.vim b/links/.vim/plugin/appearance.vim @@ -64,40 +64,44 @@ function! StatuslineLinterWarnings() abort let l:counts = ale#statusline#Count(bufnr('')) let l:all_errors = l:counts.error + l:counts.style_error let l:all_non_errors = l:counts.total - l:all_errors - return l:all_non_errors == 0 ? '' : printf(' %d ⚠ ', all_non_errors) + return l:all_non_errors == 0 ? '' : printf(' %d ⚠ ', all_non_errors) endfunction " function! StatuslineLinterErrors() abort let l:counts = ale#statusline#Count(bufnr('')) let l:all_errors = l:counts.error + l:counts.style_error let l:all_non_errors = l:counts.total - l:all_errors - return l:all_errors == 0 ? '' : printf(' %d ✖ ', all_errors) + return l:all_errors == 0 ? '' : printf(' %d ✖', all_errors) endfunction function! StatuslineLinterOK() abort let l:counts = ale#statusline#Count(bufnr('')) let l:all_errors = l:counts.error + l:counts.style_error let l:all_non_errors = l:counts.total - l:all_errors - return l:counts.total == 0 ? ' ✓ ' : '' + return l:counts.total == 0 ? '✓' : '' endfunction augroup StatuslineConfig " define 3 custom highlight groups for statusline coloring - highlight User1 ctermfg=252 guifg=#d0d0d0 ctermbg=240 guibg=#585858 - highlight User2 ctermfg=247 guifg=#969696 ctermbg=240 guibg=#585858 - highlight User3 ctermbg=244 guibg=#808080 ctermfg=238 guifg=#444444 - highlight User4 ctermfg=252 guifg=#d0d0d0 ctermbg=238 guibg=#444444 - highlight User5 ctermfg=252 guifg=#d0d0d0 ctermbg=238 guibg=#444444 - highlight User6 ctermfg=238 guifg=#444444 ctermbg=203 guibg=#e5786d - highlight User7 ctermfg=238 guifg=#444444 ctermbg=173 guibg=#e5786d + " highlight User1 ctermfg=252 guifg=#d0d0d0 ctermbg=240 guibg=#585858 + " highlight User2 ctermfg=247 guifg=#969696 ctermbg=240 guibg=#585858 + " highlight User3 ctermbg=244 guibg=#808080 ctermfg=238 guifg=#444444 + " highlight User4 ctermfg=252 guifg=#d0d0d0 ctermbg=238 guibg=#444444 + " highlight User5 ctermfg=252 guifg=#d0d0d0 ctermbg=238 guibg=#444444 + " highlight User6 ctermfg=238 guifg=#444444 ctermbg=203 guibg=#e5786d + " highlight User7 ctermfg=238 guifg=#444444 ctermbg=173 guibg=#e5786d + highlight User1 ctermfg=NONE guifg=#d0d0d0 ctermbg=NONE guibg=#585858 + highlight User2 ctermfg=NONE guifg=#969696 ctermbg=NONE guibg=#585858 + highlight User3 ctermbg=NONE guibg=#808080 ctermfg=NONE guifg=#444444 + highlight User4 ctermfg=NONE guifg=#d0d0d0 ctermbg=NONE guibg=#444444 " empty statusline and populate later set statusline= " left set statusline+=%1* " set User1 color - set statusline+=\ %t\ " tail of filename + set statusline+=\%t\ " tail of filename set statusline+=%4* " set User4 color set statusline+=\ %h%w%m%r\ " flags for help file, preview, modified, R/O set statusline+=%#LineNr# " set default background @@ -117,6 +121,6 @@ augroup StatuslineConfig set statusline+=\ %{LineNoIndicator()}\ " show position w. single char endif set statusline+=%3* " set User3 color - set statusline+=\ %2l:%-2c\ " line and column view + set statusline+=\%2l:%-2c\ " line and column view augroup END