diff options
author | aktersnurra <gustaf.rydholm@gmail.com> | 2022-07-29 17:51:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 17:51:29 +0200 |
commit | 85d7d7de20b6330528c5b7c0243c3afcc5266711 (patch) | |
tree | 5731a5f2c934fe2da5b79aef24f708590af67ae0 /lua/no-clown-fiesta/config.lua | |
parent | da502c2571b710791b29c82a77cbe577791b14df (diff) |
Update configuration api (#5)
* Refactor
* Fix opts
* Fix plugin typos
* Update readme
Diffstat (limited to 'lua/no-clown-fiesta/config.lua')
-rw-r--r-- | lua/no-clown-fiesta/config.lua | 24 |
1 files changed, 0 insertions, 24 deletions
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 |