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 080dbc5202df9d9ca6603868a9aaf64fa44ff52b
parent bea28699ef8a4f73793932f971d53c47f28c16cc
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 26 Mar 2018 19:20:41 -0400

Remove old configuration for lightline

Diffstat:
Mlinks/.vim/plugin/appearance.vim | 4++--
Mlinks/.vim/plugins.vim | 57+--------------------------------------------------------
2 files changed, 3 insertions(+), 58 deletions(-)

diff --git a/links/.vim/plugin/appearance.vim b/links/.vim/plugin/appearance.vim @@ -28,8 +28,7 @@ augroup end colorscheme tender -" configure bottom status line - +" statusline helper functions function! StatuslineLinterWarnings() abort let l:counts = ale#statusline#Count(bufnr('')) let l:all_errors = l:counts.error + l:counts.style_error @@ -51,6 +50,7 @@ function! StatuslineLinterOK() abort return l:counts.total == 0 ? ' ✓ ' : '' endfunction +" configure bottom status line "set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] "" | | | | | | | | | | | "" | | | | | | | | | | +-- current column diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -10,8 +10,7 @@ Plug 'junegunn/vim-emoji' " autocomplete :smiley: with C-x C-u Plug 'chrisbra/unicode.vim' " autocomplete unicode with C-x C-z """""" Appearance """""" -"Plug 'itchyny/lightline.vim' " lighter status line -Plug 'drzel/vim-line-no-indicator' " emphasize current line with bg color +Plug 'drzel/vim-line-no-indicator' " show current line with single character Plug 'jacoborus/tender' " color scheme Plug 'luochen1990/rainbow' " colorcode paranthesis pairs Plug 'mhinz/vim-startify' " startup screen @@ -151,60 +150,6 @@ augroup GoyoEvents autocmd! User GoyoLeave nested call <SID>goyo_leave() augroup END -" Lightline -let g:lightline = { -\ 'colorscheme': 'wombat', -\ 'active': { -\ 'left': [['mode', 'paste'], ['filename', 'modified']], -\ 'right': [['lineinfo'], ['percent'], ['readonly', 'linter_warnings', 'linter_errors', 'linter_ok']] -\ }, -\ 'component_expand': { -\ 'linter_warnings': 'LightlineLinterWarnings', -\ 'linter_errors': 'LightlineLinterErrors', -\ 'linter_ok': 'LightlineLinterOK' -\ }, -\ 'component_type': { -\ 'readonly': 'error', -\ 'linter_warnings': 'warning', -\ 'linter_errors': 'error' -\ }, -\ } - -" Use bar instead of percentage -let g:lightline.component = { 'percent': '%{LineNoIndicator()}' } - -function! LightlineLinterWarnings() 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 ? '' : printf('%d ◆', all_non_errors) -endfunction - -function! LightlineLinterErrors() 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 ? '' : printf('%d ✗', all_errors) -endfunction - -function! LightlineLinterOK() 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 ? '✓ ' : '' -endfunction - -augroup ALEcmds - autocmd User ALELint call s:MaybeUpdateLightline() -augroup END - -" Update and show lightline but only if it's visible (e.g., not in Goyo) -function! s:MaybeUpdateLightline() abort - if exists('#lightline') - call lightline#update() - end -endfunction - " run vim-emoji on entire document command! -range EmojiReplace <line1>,<line2>s/:\([^:]\+\):/\=emoji#for(submatch(1), submatch(0))/g