From dec91c292e4c94b30ab3e749ef5464ee165f9e8b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 29 Oct 2022 12:15:16 +0200 Subject: Update loading of colorscheme --- lua/no-clown-fiesta/settings.lua | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'lua/no-clown-fiesta/settings.lua') diff --git a/lua/no-clown-fiesta/settings.lua b/lua/no-clown-fiesta/settings.lua index e41380c..a289600 100644 --- a/lua/no-clown-fiesta/settings.lua +++ b/lua/no-clown-fiesta/settings.lua @@ -1,17 +1,20 @@ local M = {} -local palette = require "no-clown-fiesta.palette" -local default = { - transparent_background = palette.bg, - comments = "NONE", - keywords = "NONE", - functions = "NONE", - variables = "NONE", - type = "NONE", +local DEFAULT = { + transparent = false, + styles = { + comments = {}, + keywords = {}, + functions = {}, + variables = {}, + type = { bold = true }, + }, } -function M.set(opts) - return vim.tbl_extend("force", default, opts) +M.options = {} + +function M.setup(options) + M.options = vim.tbl_extend("force", DEFAULT, options) end return M -- cgit v1.2.3-70-g09d2