From 4e2317da2b50a30fb64024d7d59f94881e27a609 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Fri, 29 Jul 2022 17:51:29 +0200 Subject: Update configuration api (#5) * Refactor * Fix opts * Fix plugin typos * Update readme BREAKING CHANGE: Configuration api updated. --- lua/no-clown-fiesta/settings.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/no-clown-fiesta/settings.lua (limited to 'lua/no-clown-fiesta/settings.lua') diff --git a/lua/no-clown-fiesta/settings.lua b/lua/no-clown-fiesta/settings.lua new file mode 100644 index 0000000..e41380c --- /dev/null +++ b/lua/no-clown-fiesta/settings.lua @@ -0,0 +1,17 @@ +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", +} + +function M.set(opts) + return vim.tbl_extend("force", default, opts) +end + +return M -- cgit v1.2.3-70-g09d2