From a8c7c3b11b07dd4c7b0d1a88b49436c92cdb1ed4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 3 Sep 2022 23:47:25 +0200 Subject: [PATCH] style: fixed EmmyLua annotations --- lua/tokyonight/colors.lua | 4 +--- lua/tokyonight/config.lua | 7 +++---- lua/tokyonight/theme.lua | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lua/tokyonight/colors.lua b/lua/tokyonight/colors.lua index a2345a6..1ed48ab 100644 --- a/lua/tokyonight/colors.lua +++ b/lua/tokyonight/colors.lua @@ -9,9 +9,7 @@ function M.setup(config) -- Color Palette ---@class ColorScheme - local colors = {} - - colors = { + local colors = { none = "NONE", bg_dark = "#1f2335", bg = "#24283b", diff --git a/lua/tokyonight/config.lua b/lua/tokyonight/config.lua index 565a708..a51658a 100644 --- a/lua/tokyonight/config.lua +++ b/lua/tokyonight/config.lua @@ -1,6 +1,3 @@ ----@class Config -local config - -- shim vim for kitty and other generators vim = vim or { g = {}, o = {} } @@ -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), @@ -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), } diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 5fcf1a8..29a7cd5 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -12,6 +12,7 @@ function M.setup(config) local theme = {} theme.config = config theme.colors = colors.setup(config) + local c = theme.colors theme.base = {