simplify compat check

This commit is contained in:
Michael Chris Lopez
2021-10-10 19:26:05 +08:00
parent 8d985a9bbc
commit 5722bc09c0
3 changed files with 3 additions and 15 deletions

View File

@@ -24,11 +24,7 @@ let g:terminal_color_13 = '#7B3B70'
let g:terminal_color_14 = '#2B747C'
let g:terminal_color_15 = '#4F5E68'
if !exists('g:zenbones_compat')
let g:zenbones_compat = !has('nvim')
endif
if g:zenbones_compat == 0
let g:colors_name = 'zenbones'
if has('nvim') && (!exists('g:zenbones_compat') || g:zenbones_compat == 0)
lua package.loaded["zenbones"] = nil
lua require "lush"(require "zenbones", { force_clean = false })
finish

View File

@@ -24,11 +24,7 @@ let g:terminal_color_13 = '#CF86C1'
let g:terminal_color_14 = '#65B8C1'
let g:terminal_color_15 = '#888F94'
if !exists('g:zenbones_compat')
let g:zenbones_compat = !has('nvim')
endif
if g:zenbones_compat == 0
let g:colors_name = 'zenflesh'
if has('nvim') && (!exists('g:zenbones_compat') || g:zenbones_compat == 0)
lua package.loaded["zenflesh"] = nil
lua require "lush"(require "zenflesh", { force_clean = false })
finish

View File

@@ -8,11 +8,7 @@ endif
let g:colors_name = '${name}'
${termcolors}
if !exists('g:zenbones_compat')
let g:zenbones_compat = !has('nvim')
endif
if g:zenbones_compat == 0
let g:colors_name = '${name}'
if has('nvim') && (!exists('g:zenbones_compat') || g:zenbones_compat == 0)
lua package.loaded["${specs_path}"] = nil
lua require "lush"(require "${specs_path}", { force_clean = false })
finish