fix: access config.options within setup instead of global

This commit is contained in:
Folke Lemaitre 2022-09-05 16:10:05 +02:00
parent a3b558b552
commit 81a6845098
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -1,6 +1,5 @@
local util = require("tokyonight.util") local util = require("tokyonight.util")
local colors = require("tokyonight.colors") local colors = require("tokyonight.colors")
local config = require("tokyonight.config").options
local M = {} local M = {}
-- --
@ -14,6 +13,7 @@ local M = {}
---@return Theme ---@return Theme
function M.setup() function M.setup()
local config = require("tokyonight.config").options
---@class Theme ---@class Theme
---@field base Highlights ---@field base Highlights
---@field plugins Highlights ---@field plugins Highlights