Skip to content

Commit

Permalink
style: fixed EmmyLua annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 3, 2022
1 parent fbe359f commit a8c7c3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions lua/tokyonight/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ function M.setup(config)

-- Color Palette
---@class ColorScheme
local colors = {}

colors = {
local colors = {
none = "NONE",
bg_dark = "#1f2335",
bg = "#24283b",
Expand Down
7 changes: 3 additions & 4 deletions lua/tokyonight/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---@class Config
local config

-- shim vim for kitty and other generators
vim = vim or { g = {}, o = {} }

Expand All @@ -15,7 +12,8 @@ local function opt(key, default)
return vim.g[key]
end

config = {
---@class Config
local config = {
style = opt("style", "storm"),
dayBrightness = opt("day_brightness", 0.3),
transparent = opt("transparent", false),
Expand All @@ -32,6 +30,7 @@ config = {
darkSidebar = opt("dark_sidebar", true),
transparentSidebar = opt("transparent_sidebar", false),
transform_colors = false,
borderlessTelescope = opt("borderless_telescope", true),
lualineBold = opt("lualine_bold", false),
}

Expand Down
1 change: 1 addition & 0 deletions lua/tokyonight/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function M.setup(config)
local theme = {}
theme.config = config
theme.colors = colors.setup(config)

local c = theme.colors

theme.base = {
Expand Down

0 comments on commit a8c7c3b

Please sign in to comment.