feat: support randombones palette, lightline and lualine

This commit is contained in:
Michael Chris Lopez
2021-11-07 10:05:17 +08:00
parent 6dae870cf6
commit 15d724c738
5 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1 @@
let g:lightline#colorscheme#randombones#palette = g:lightline#colorscheme#{g:randombones.name}#palette

View File

@@ -7,9 +7,9 @@ else
let s:index = rand() % len(s:colorschemes)
endif
let s:color = s:colorschemes[s:index]
if exists('s:color.background')
call zenbones#setup_colorscheme(s:color.name, s:color.background)
let g:randombones = s:colorschemes[s:index]
if exists('g:randombones.background')
call zenbones#setup_colorscheme(g:randombones.name, g:randombones.background)
else
call zenbones#setup_colorscheme(s:color.name)
call zenbones#setup_colorscheme(g:randombones.name)
end

View File

@@ -0,0 +1 @@
return require("lualine.themes." .. vim.g.randombones.name)

1
lua/randombones/init.lua Normal file
View File

@@ -0,0 +1 @@
return require(vim.g.randombones.name)

View File

@@ -0,0 +1 @@
return require(vim.g.randombones.name .. ".palette")