mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
23 lines
No EOL
623 B
Lua
23 lines
No EOL
623 B
Lua
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 |