summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/config.lua
blob: 21d030f2a1c39a0ae60c041159b0042a62c40bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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) 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",
}

return config