add: config global variable

This commit is contained in:
asep.komarudin 2024-05-21 14:20:50 +07:00
parent 77436b89c4
commit a7726a6b33
30 changed files with 703 additions and 857 deletions

View file

@ -5,17 +5,15 @@ end
local transp = false
local sidebar = "normal" --"dark , transparent, normal"
local hilight = "#292e42"
local data_exists, config = pcall(require, "core.config")
if data_exists then
local tras = config.transparent_mode
if tras == 1 then
transp = true
sidebar = "transparent"
-- hilight = "#3E4254"
-- hilight = "#353a56"
hilight = "#292e42"
end
local tras = vim.g.pcode_transparent_mode
if tras == 1 then
transp = true
sidebar = "transparent"
-- hilight = "#3E4254"
-- hilight = "#353a56"
hilight = "#292e42"
end
tokyonight.setup({
-- your configuration comes here
-- or leave it empty to use the default settings