mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
use palettes when available for a colorscheme
This commit is contained in:
parent
c294f1fb02
commit
95190e9c34
1 changed files with 6 additions and 2 deletions
|
@ -5,8 +5,12 @@ local status_ok, gl = pcall(require, "galaxyline")
|
|||
if not status_ok then
|
||||
return
|
||||
end
|
||||
-- get my theme in galaxyline repo
|
||||
local colors = O.plugin.galaxyline.colors
|
||||
|
||||
-- NOTE: if someone defines colors but doesn't have them then this will break
|
||||
local palette_status_ok, colors = pcall(require, O.colorscheme .. ".palette")
|
||||
if not palette_status_ok then
|
||||
colors = O.plugin.galaxyline.colors
|
||||
end
|
||||
|
||||
local condition = require "galaxyline.condition"
|
||||
local gls = gl.section
|
||||
|
|
Loading…
Reference in a new issue