mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-15 06:53:51 -05:00
Fixes for indentation and the possibility that the solarized variable won't be there
This commit is contained in:
@@ -7,33 +7,34 @@
|
|||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:cuicolors = {
|
let s:cuicolors = {
|
||||||
\ 'base03': [ '8', '234', 'DarkGray' ],
|
\ 'base03': [ '8', '234', 'DarkGray' ],
|
||||||
\ 'base02': [ '0', '235', 'Black' ],
|
\ 'base02': [ '0', '235', 'Black' ],
|
||||||
\ 'base01': [ '10', '239', 'LightGreen' ],
|
\ 'base01': [ '10', '239', 'LightGreen' ],
|
||||||
\ 'base00': [ '11', '240', 'LightYellow' ],
|
\ 'base00': [ '11', '240', 'LightYellow' ],
|
||||||
\ 'base0': [ '12', '244', 'LightBlue' ],
|
\ 'base0': [ '12', '244', 'LightBlue' ],
|
||||||
\ 'base1': [ '14', '245', 'LightCyan' ],
|
\ 'base1': [ '14', '245', 'LightCyan' ],
|
||||||
\ 'base2': [ '7', '187', 'LightGray' ],
|
\ 'base2': [ '7', '187', 'LightGray' ],
|
||||||
\ 'base3': [ '15', '230', 'White' ],
|
\ 'base3': [ '15', '230', 'White' ],
|
||||||
\ 'yellow': [ '3', '136', 'DarkYellow' ],
|
\ 'yellow': [ '3', '136', 'DarkYellow' ],
|
||||||
\ 'orange': [ '9', '166', 'LightRed' ],
|
\ 'orange': [ '9', '166', 'LightRed' ],
|
||||||
\ 'red': [ '1', '124', 'DarkRed' ],
|
\ 'red': [ '1', '124', 'DarkRed' ],
|
||||||
\ 'magenta': [ '5', '125', 'DarkMagenta' ],
|
\ 'magenta': [ '5', '125', 'DarkMagenta' ],
|
||||||
\ 'violet': [ '13', '61', 'LightMagenta' ],
|
\ 'violet': [ '13', '61', 'LightMagenta' ],
|
||||||
\ 'blue': [ '4', '33', 'DarkBlue' ],
|
\ 'blue': [ '4', '33', 'DarkBlue' ],
|
||||||
\ 'cyan': [ '6', '37', 'DarkCyan' ],
|
\ 'cyan': [ '6', '37', 'DarkCyan' ],
|
||||||
\ 'green': [ '2', '64', 'DarkGreen' ],
|
\ 'green': [ '2', '64', 'DarkGreen' ],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" 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)
|
||||||
let s:cuiindex = 0
|
if s:solarized_termcolors != 256 && &t_Co >= 16
|
||||||
elseif g:solarized_termcolors == 256
|
let s:cuiindex = 0
|
||||||
let s:cuiindex = 1
|
elseif s:solarized_termcolors == 256
|
||||||
|
let s:cuiindex = 1
|
||||||
else
|
else
|
||||||
let s:cuiindex = 2
|
let s:cuiindex = 2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ]
|
let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ]
|
||||||
|
|||||||
@@ -7,33 +7,34 @@
|
|||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:cuicolors = {
|
let s:cuicolors = {
|
||||||
\ 'base03': [ '8', '234', 'DarkGray' ],
|
\ 'base03': [ '8', '234', 'DarkGray' ],
|
||||||
\ 'base02': [ '0', '235', 'Black' ],
|
\ 'base02': [ '0', '235', 'Black' ],
|
||||||
\ 'base01': [ '10', '239', 'LightGreen' ],
|
\ 'base01': [ '10', '239', 'LightGreen' ],
|
||||||
\ 'base00': [ '11', '240', 'LightYellow' ],
|
\ 'base00': [ '11', '240', 'LightYellow' ],
|
||||||
\ 'base0': [ '12', '244', 'LightBlue' ],
|
\ 'base0': [ '12', '244', 'LightBlue' ],
|
||||||
\ 'base1': [ '14', '245', 'LightCyan' ],
|
\ 'base1': [ '14', '245', 'LightCyan' ],
|
||||||
\ 'base2': [ '7', '187', 'LightGray' ],
|
\ 'base2': [ '7', '187', 'LightGray' ],
|
||||||
\ 'base3': [ '15', '230', 'White' ],
|
\ 'base3': [ '15', '230', 'White' ],
|
||||||
\ 'yellow': [ '3', '136', 'DarkYellow' ],
|
\ 'yellow': [ '3', '136', 'DarkYellow' ],
|
||||||
\ 'orange': [ '9', '166', 'LightRed' ],
|
\ 'orange': [ '9', '166', 'LightRed' ],
|
||||||
\ 'red': [ '1', '124', 'DarkRed' ],
|
\ 'red': [ '1', '124', 'DarkRed' ],
|
||||||
\ 'magenta': [ '5', '125', 'DarkMagenta' ],
|
\ 'magenta': [ '5', '125', 'DarkMagenta' ],
|
||||||
\ 'violet': [ '13', '61', 'LightMagenta' ],
|
\ 'violet': [ '13', '61', 'LightMagenta' ],
|
||||||
\ 'blue': [ '4', '33', 'DarkBlue' ],
|
\ 'blue': [ '4', '33', 'DarkBlue' ],
|
||||||
\ 'cyan': [ '6', '37', 'DarkCyan' ],
|
\ 'cyan': [ '6', '37', 'DarkCyan' ],
|
||||||
\ 'green': [ '2', '64', 'DarkGreen' ],
|
\ 'green': [ '2', '64', 'DarkGreen' ],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" 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)
|
||||||
let s:cuiindex = 0
|
if s:solarized_termcolors != 256 && &t_Co >= 16
|
||||||
elseif g:solarized_termcolors == 256
|
let s:cuiindex = 0
|
||||||
let s:cuiindex = 1
|
elseif s:solarized_termcolors == 256
|
||||||
|
let s:cuiindex = 1
|
||||||
else
|
else
|
||||||
let s:cuiindex = 2
|
let s:cuiindex = 2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ]
|
let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ]
|
||||||
|
|||||||
Reference in New Issue
Block a user