Parcourir la source

Revert to Solarized again instead of Flattened

It turns out that `flattened` is difficult to configure to degrade to
256 colours easily - too many unknowns, and unreliable since `nvim` no
longer responds to `t_Co` (or any other terminfo variables).
Weiyi Lou il y a 10 ans
Parent
commit
18fe3b1bd1
2 fichiers modifiés avec 7 ajouts et 5 suppressions
  1. 0 1
      vim/plugins.vim
  2. 7 4
      vim/settings/colorscheme-statusline.vim

+ 0 - 1
vim/plugins.vim

@@ -35,7 +35,6 @@ Plug 'altercation/vim-colors-solarized'
 Plug 'bling/vim-airline'
 Plug 'junegunn/goyo.vim'
 Plug 'junegunn/limelight.vim'
-Plug 'romainl/flattened'
 " }}}
 
 " Text Objects {{{

+ 7 - 4
vim/settings/colorscheme-statusline.vim

@@ -9,9 +9,9 @@
 " http://sunaku.github.io/vim-256color-bce.html
 set t_ut=
 
-" Uncomment this to use proper solarized colours, after the terminal emulator
+" Comment this out to use proper solarized colours, after the terminal emulator
 " palette is properly set up.
-"set t_Co=16
+let g:solarized_termcolors=256
 
 " Status line defaults.
 let g:airline_powerline_fonts = 1
@@ -20,17 +20,20 @@ set noshowmode   " hide modes e.g. --INSERT-- with themed status lines.
 set showcmd      " display partial commands on the last line
 
 function! Dark()
-  colorscheme flattened_dark
+  set background=dark
+  colorscheme solarized
   call SetTheme('powerlineish')
   highlight SignColumn ctermbg=235
 endfunction
 
 function! Light()
-  colorscheme flattened_light
+  set background=light
+  colorscheme solarized
   call SetTheme('powerlineish')
 endfunction
 
 function! Neon()
+  set background=light
   colorscheme neonwave
   call SetTheme('surarken')
 endfunction