diff options
author | Christian Chiarulli <[email protected]> | 2021-08-30 00:59:23 -0400 |
---|---|---|
committer | Christian Chiarulli <[email protected]> | 2021-08-30 00:59:23 -0400 |
commit | 0f458a04688d71d194fc104351f8cda5aff936af (patch) | |
tree | d95ebf0904c70584eb0576c91c5c74515e0ca4a5 /lua/onedarker/config.lua | |
parent | 5ede0c906ab174678e39237fe55f24bc5ae99348 (diff) |
onedarker colorscheme
Diffstat (limited to 'lua/onedarker/config.lua')
-rw-r--r-- | lua/onedarker/config.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/onedarker/config.lua b/lua/onedarker/config.lua new file mode 100644 index 00000000..ebac7109 --- /dev/null +++ b/lua/onedarker/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 |