farout.nvim/lua/tokyonight/config.lua

29 lines
852 B
Lua
Raw Normal View History

2021-04-17 19:22:55 +00:00
---@class Config
local config
2021-04-20 10:19:20 +00:00
-- shim vim for kitty and other generators
vim = vim or { g = {} }
2021-04-19 12:39:35 +00:00
local function opt(key, default)
key = "tokyonight_" .. key
if vim.g[key] == nil then return default end
if vim.g[key] == 0 then return false end
return vim.g[key]
end
config = {
style = opt("style", "storm"),
transparent = opt("transparent", false),
commentStyle = opt("italic_comments", true) and "italic" or "NONE",
keywordStyle = opt("italic_keywords", true) and "italic" or "NONE",
functionStyle = opt("italic_functions", false) and "italic" or "NONE",
hideInactiveStatusline = opt("hide_inactive_statusline", false),
2021-04-20 09:58:45 +00:00
terminalColors = opt("terminal_colors", true),
2021-04-20 10:19:20 +00:00
sidebars = opt("sidebars", {}),
dev = opt("dev", false),
darkFloat = opt("dark_float", true),
darkSidebar = opt("dark_sidebar", true),
2021-04-19 12:39:35 +00:00
}
2021-04-17 19:22:55 +00:00
return config