update dir paths as base46 isnt an opt plugin anymore

v2.5
siduck 4 years ago
parent 33f9385512
commit 65d2e690a4

@ -4,7 +4,7 @@ local ui = require("core.utils").load_config().ui
local highlights = {} local highlights = {}
-- push hl_dir file names to table -- push hl_dir file names to table
local hl_files = vim.fn.stdpath "data" .. "/site/pack/packer/opt/base46/lua/base46/integrations" local hl_files = vim.fn.stdpath "data" .. "/site/pack/packer/start/base46/lua/base46/integrations"
for _, file in ipairs(vim.fn.readdir(hl_files)) do for _, file in ipairs(vim.fn.readdir(hl_files)) do
local integration = require("base46.integrations." .. vim.fn.fnamemodify(file, ":r")) local integration = require("base46.integrations." .. vim.fn.fnamemodify(file, ":r"))

@ -37,11 +37,14 @@ M.clear_highlights = function(hl_group)
end end
M.load_all_highlights = function() M.load_all_highlights = function()
vim.opt.bg = require("base46").get_theme_tb "type" -- dark/light
-- reload highlights for theme switcher -- reload highlights for theme switcher
local reload = require("plenary.reload").reload_module local reload = require("plenary.reload").reload_module
local clear_hl = require("base46").clear_highlights
M.clear_highlights "BufferLine" clear_hl "BufferLine"
M.clear_highlights "TS" clear_hl "TS"
reload "base46.integrations" reload "base46.integrations"
reload "base46.chadlights" reload "base46.chadlights"
@ -174,12 +177,10 @@ M.toggle_transparency = function()
if g.transparency then if g.transparency then
g.transparency = false g.transparency = false
M.load_all_highlights() M.load_all_highlights()
save_chadrc_data() save_chadrc_data()
else else
g.transparency = true g.transparency = true
M.load_all_highlights() M.load_all_highlights()
save_chadrc_data() save_chadrc_data()
end end

@ -30,6 +30,8 @@ return {
PackerPackageName = { fg = colors.red }, PackerPackageName = { fg = colors.red },
PackerSuccess = { fg = colors.green }, PackerSuccess = { fg = colors.green },
PackeProgress = { fg = colors.blue }, PackeProgress = { fg = colors.blue },
PackerOutput = { fg = colors.red },
PackerStatus = { fg = colors.blue },
Normal = { Normal = {
fg = theme.base05, fg = theme.base05,

Loading…
Cancel
Save