LunarVim/lua/onedarker/config.lua

24 lines
596 B
Lua
Raw Normal View History

2021-07-12 18:51:49 +02:00
local config
vim = vim or { g = {}, o = {} }
local function opt(key, default)
2021-08-01 12:02:19 +02:00
if vim.g[key] == nil then
return default
end
if vim.g[key] == 0 then
return false
end
return vim.g[key]
2021-07-12 18:51:49 +02:00
end
config = {
2021-08-01 12:02:19 +02:00
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",
2021-07-12 18:51:49 +02:00
}
2021-08-01 12:02:19 +02:00
return config