mirror of
https://github.com/gabehf/base46.git
synced 2026-03-15 18:25:56 -07:00
use lua/themes instead of custom/themes (#291)
This commit is contained in:
parent
15ed57cdeb
commit
e3427f6a6c
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ local config = require "nvconfig"
|
||||||
|
|
||||||
M.get_theme_tb = function(type)
|
M.get_theme_tb = function(type)
|
||||||
local default_path = "base46.themes." .. config.ui.theme
|
local default_path = "base46.themes." .. config.ui.theme
|
||||||
local user_path = "custom.themes." .. config.ui.theme
|
local user_path = "themes." .. config.ui.theme
|
||||||
|
|
||||||
local present1, default_theme = pcall(require, default_path)
|
local present1, default_theme = pcall(require, default_path)
|
||||||
local present2, user_theme = pcall(require, user_path)
|
local present2, user_theme = pcall(require, user_path)
|
||||||
|
|
@ -169,7 +169,7 @@ M.toggle_transparency = function()
|
||||||
|
|
||||||
local old_transparency_val = dofile(vim.fn.stdpath "config" .. "/lua/custom/chadrc.lua").ui.transparency
|
local old_transparency_val = dofile(vim.fn.stdpath "config" .. "/lua/custom/chadrc.lua").ui.transparency
|
||||||
local new_transparency_val = "transparency = " .. tostring(config.ui.transparency)
|
local new_transparency_val = "transparency = " .. tostring(config.ui.transparency)
|
||||||
require("nvchad.utils").replace_word("transparency = " .. tostring(old_transparency_val),new_transparency_val)
|
require("nvchad.utils").replace_word("transparency = " .. tostring(old_transparency_val), new_transparency_val)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue