From 6859908ddee41f7b0121f3c2e3ef2262875291ba Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 29 Jul 2022 17:19:06 +0200 Subject: Refactor --- lua/no-clown-fiesta/config.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete 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 deleted file mode 100644 index 3f51bce..0000000 --- a/lua/no-clown-fiesta/config.lua +++ /dev/null @@ -1,24 +0,0 @@ -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) and "NONE" or C.bg, - italic_comments = opt("italic_comments", true) and "italic" or "NONE", - italic_keywords = opt("italic_keywords", false) and "italic" or "NONE", - italic_functions = opt("italic_functions", false) and "italic" or "NONE", - italic_variables = opt("italic_variables", false) and "italic" or "NONE", - bold_type = opt("bold_type", false) and "bold" or "NONE", -} - -return config -- cgit v1.2.3-70-g09d2