mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-15 15:03:51 -05:00
Fixes for indentation and the possibility that the solarized variable won't be there
This commit is contained in:
@@ -28,9 +28,10 @@ let s:cuicolors = {
|
|||||||
" The following condition only applies for the console and is the same
|
" The following condition only applies for the console and is the same
|
||||||
" condition vim-colors-solarized uses to determine which set of colors
|
" condition vim-colors-solarized uses to determine which set of colors
|
||||||
" to use.
|
" to use.
|
||||||
if g:solarized_termcolors != 256 && &t_Co >= 16
|
let s:solarized_termcolors = get(g:, 'solarized_termcolors', 16)
|
||||||
|
if s:solarized_termcolors != 256 && &t_Co >= 16
|
||||||
let s:cuiindex = 0
|
let s:cuiindex = 0
|
||||||
elseif g:solarized_termcolors == 256
|
elseif s:solarized_termcolors == 256
|
||||||
let s:cuiindex = 1
|
let s:cuiindex = 1
|
||||||
else
|
else
|
||||||
let s:cuiindex = 2
|
let s:cuiindex = 2
|
||||||
|
|||||||
@@ -28,9 +28,10 @@ let s:cuicolors = {
|
|||||||
" The following condition only applies for the console and is the same
|
" The following condition only applies for the console and is the same
|
||||||
" condition vim-colors-solarized uses to determine which set of colors
|
" condition vim-colors-solarized uses to determine which set of colors
|
||||||
" to use.
|
" to use.
|
||||||
if g:solarized_termcolors != 256 && &t_Co >= 16
|
let s:solarized_termcolors = get(g:, 'solarized_termcolors', 16)
|
||||||
|
if s:solarized_termcolors != 256 && &t_Co >= 16
|
||||||
let s:cuiindex = 0
|
let s:cuiindex = 0
|
||||||
elseif g:solarized_termcolors == 256
|
elseif s:solarized_termcolors == 256
|
||||||
let s:cuiindex = 1
|
let s:cuiindex = 1
|
||||||
else
|
else
|
||||||
let s:cuiindex = 2
|
let s:cuiindex = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user