aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vim/addons-settings.vim13
1 files changed, 10 insertions, 3 deletions
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': '|' }