9
autoload/bones.vim
Normal file
9
autoload/bones.vim
Normal file
@@ -0,0 +1,9 @@
|
||||
function! bones#_compat(colors_name)
|
||||
if exists('g:' . a:colors_name . '_compat')
|
||||
return g:{a:colors_name}_compat != 0
|
||||
elseif exists('g:bones_compat')
|
||||
return g:bones_compat != 0
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
endfunction
|
||||
@@ -5,7 +5,7 @@ endif
|
||||
let g:colors_name = 'duckbones'
|
||||
set background=dark
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'forestbones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim' && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -5,7 +5,7 @@ endif
|
||||
let g:colors_name = 'kanagawabones'
|
||||
set background=dark
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'neobones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -5,7 +5,7 @@ endif
|
||||
let g:colors_name = 'nordbones'
|
||||
set background=dark
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'rosebones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'seoulbones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'tokyobones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -5,7 +5,7 @@ endif
|
||||
let g:colors_name = 'vimbones'
|
||||
set background=light
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'zenbones'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -5,7 +5,7 @@ endif
|
||||
let g:colors_name = 'zenburned'
|
||||
set background=dark
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,7 +4,7 @@ endif
|
||||
|
||||
let g:colors_name = 'zenwritten'
|
||||
|
||||
if has('nvim') && (!exists('g:' . g:colors_name . '_compat') || g:{g:colors_name}_compat == 0)
|
||||
if has('nvim') && !bones#_compat(g:colors_name)
|
||||
lua require("zenbones.util").apply_colorscheme()
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -85,9 +85,11 @@ the flavor name e.g. `g:rosebones_italic_comments`.
|
||||
| colorize_diagnostic_underline_text | both | `false` | Colorize the fg of `DiagnosticUnderline*`. |
|
||||
| transparent_background | both | `false` | Make background transparent. |
|
||||
|
||||
#### g:zenbones_compat
|
||||
#### g:bones_compat
|
||||
|
||||
Set to `1` to enable compatibility mode. Enabled in Vim.
|
||||
Set to `1` to enable compatibility mode for all colorschemes. Enabled in Vim. To
|
||||
enable/disable compatibility mode for a specific theme, set the variable
|
||||
`g:{theme}_compat` to `0` or `1`, e.g. `let g:zenbones_compat = 1`.
|
||||
|
||||
### lightline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user