build: selene + stylua

This commit is contained in:
Folke Lemaitre
2021-05-12 11:19:28 +02:00
parent fc7301ab94
commit 09cc28432f
13 changed files with 269 additions and 155 deletions

View File

@@ -6,8 +6,12 @@ vim = vim or { g = {}, o = {} }
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
if vim.g[key] == nil then
return default
end
if vim.g[key] == 0 then
return false
end
return vim.g[key]
end
@@ -28,6 +32,8 @@ config = {
transform_colors = false,
}
if config.style == "day" then vim.o.background = "light" end
if config.style == "day" then
vim.o.background = "light"
end
return config