From 9ff189c7de06f63e5c37bc3c70b047e3357b3469 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 16 Mar 2017 12:47:09 +0100 Subject: .vim/addons-settings.vim: Changing to working colorscheme wombat. Setting active and inactive displays. Adding readonly, modified, fugitive components. --- .vim/addons-settings.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.vim') diff --git a/.vim/addons-settings.vim b/.vim/addons-settings.vim index 2a37d56..69b597a 100644 --- a/.vim/addons-settings.vim +++ b/.vim/addons-settings.vim @@ -80,17 +80,24 @@ autocmd BufRead,BufNewFile *.js set ft=javascript syntax=jquery " ================ lightline settings ================ let g:lightline = { - \ 'colorscheme': 'solarized', + \ 'colorscheme': 'wombat', \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] + \ }, + \ 'inactive': { \ 'left': [ [ 'mode' ], \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] \ }, \ 'component': { - \ 'readonly': '%{&readonly?"x":""}', + \ 'readonly': '%{&readonly?"r":"rw"}', + \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', \ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}' \ }, \ 'component_visible_condition': { - \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())' + \ 'readonly': '(&filetype!="help"&& &readonly)', + \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())', + \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))' \ }, \ 'separator': { 'left': '', 'right': '' }, \ 'subseparator': { 'left': '|', 'right': '|' } -- cgit v1.2.3-54-g00ecf