mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 07:28:50 -07:00
update dir paths as base46 isnt an opt plugin anymore
This commit is contained in:
parent
33f9385512
commit
65d2e690a4
3 changed files with 8 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ local ui = require("core.utils").load_config().ui
|
|||
local highlights = {}
|
||||
|
||||
-- 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
|
||||
local integration = require("base46.integrations." .. vim.fn.fnamemodify(file, ":r"))
|
||||
|
|
|
|||
|
|
@ -37,11 +37,14 @@ M.clear_highlights = function(hl_group)
|
|||
end
|
||||
|
||||
M.load_all_highlights = function()
|
||||
vim.opt.bg = require("base46").get_theme_tb "type" -- dark/light
|
||||
|
||||
-- reload highlights for theme switcher
|
||||
local reload = require("plenary.reload").reload_module
|
||||
local clear_hl = require("base46").clear_highlights
|
||||
|
||||
M.clear_highlights "BufferLine"
|
||||
M.clear_highlights "TS"
|
||||
clear_hl "BufferLine"
|
||||
clear_hl "TS"
|
||||
|
||||
reload "base46.integrations"
|
||||
reload "base46.chadlights"
|
||||
|
|
@ -174,12 +177,10 @@ M.toggle_transparency = function()
|
|||
|
||||
if g.transparency then
|
||||
g.transparency = false
|
||||
|
||||
M.load_all_highlights()
|
||||
save_chadrc_data()
|
||||
else
|
||||
g.transparency = true
|
||||
|
||||
M.load_all_highlights()
|
||||
save_chadrc_data()
|
||||
end
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ return {
|
|||
PackerPackageName = { fg = colors.red },
|
||||
PackerSuccess = { fg = colors.green },
|
||||
PackeProgress = { fg = colors.blue },
|
||||
PackerOutput = { fg = colors.red },
|
||||
PackerStatus = { fg = colors.blue },
|
||||
|
||||
Normal = {
|
||||
fg = theme.base05,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue