summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/dark/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/no-clown-fiesta/dark/config.lua')
-rw-r--r--lua/no-clown-fiesta/dark/config.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/no-clown-fiesta/dark/config.lua b/lua/no-clown-fiesta/dark/config.lua
new file mode 100644
index 0000000..ebac710
--- /dev/null
+++ b/lua/no-clown-fiesta/dark/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