mirror of
https://github.com/gabehf/base46.git
synced 2026-03-15 02:05:56 -07:00
load glassy module only when transparency is enabled
This commit is contained in:
parent
fdaacd95d6
commit
3d4ca78877
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,6 @@ M.turn_str_to_color = function(tb_in)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.extend_default_hl = function(highlights)
|
M.extend_default_hl = function(highlights)
|
||||||
local glassy = require "base46.glassy"
|
|
||||||
local polish_hl = M.get_theme_tb "polish_hl"
|
local polish_hl = M.get_theme_tb "polish_hl"
|
||||||
|
|
||||||
-- polish themes
|
-- polish themes
|
||||||
|
|
@ -71,6 +70,8 @@ M.extend_default_hl = function(highlights)
|
||||||
|
|
||||||
-- transparency
|
-- transparency
|
||||||
if vim.g.transparency then
|
if vim.g.transparency then
|
||||||
|
local glassy = require "base46.glassy"
|
||||||
|
|
||||||
for key, value in pairs(glassy) do
|
for key, value in pairs(glassy) do
|
||||||
if highlights[key] then
|
if highlights[key] then
|
||||||
highlights[key] = M.merge_tb(highlights[key], value)
|
highlights[key] = M.merge_tb(highlights[key], value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue