From f7e4be5291637caf41d9358a848e249a72b24db0 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 10 Jan 2022 21:21:00 +0100 Subject: Initial commit --- lua/no-clown-fiesta/config.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/no-clown-fiesta/config.lua (limited to 'lua/no-clown-fiesta/config.lua') diff --git a/lua/no-clown-fiesta/config.lua b/lua/no-clown-fiesta/config.lua new file mode 100644 index 0000000..ebac710 --- /dev/null +++ b/lua/no-clown-fiesta/config.lua @@ -0,0 +1,23 @@ +local config + +vim = vim or { g = {}, o = {} } + +local function opt(key, default) + if vim.g[key] == nil then + return default + end + if vim.g[key] == 0 then + return false + end + return vim.g[key] +end + +config = { + transparent_background = opt("transparent_background", false), + italic_comments = opt("italic_keywords", true) and "italic" or "NONE", + italic_keywords = opt("italic_keywords", true) and "italic" or "NONE", + italic_functions = opt("italic_function", false) and "italic" or "NONE", + italic_variables = opt("italic_variables", true) and "italic" or "NONE", +} + +return config -- cgit v1.2.3-70-g09d2