add transparency option to user config
This commit is contained in:
parent
880d4dc312
commit
f10fb47637
4 changed files with 29 additions and 10 deletions
|
@ -4,12 +4,18 @@ local M = {}
|
|||
|
||||
M.ui = {
|
||||
theme = "onedark",
|
||||
-- for theme toggle
|
||||
|
||||
-- theme toggle
|
||||
theme_toggler = false,
|
||||
fav_themes = {
|
||||
"onedark",
|
||||
"gruvchad",
|
||||
},
|
||||
theme_toggler = false,
|
||||
|
||||
-- Enable this only if your terminal has the colorscheme set which nvchad uses
|
||||
-- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal
|
||||
transparency = true,
|
||||
|
||||
hidden_statusline = {
|
||||
-- these are filetypes, not pattern matched
|
||||
"NvimTree",
|
||||
|
|
|
@ -4,12 +4,18 @@ local M = {}
|
|||
|
||||
M.ui = {
|
||||
theme = "onedark",
|
||||
-- for theme toggle
|
||||
|
||||
-- theme toggle
|
||||
theme_toggler = false,
|
||||
fav_themes = {
|
||||
"onedark",
|
||||
"gruvchad",
|
||||
},
|
||||
theme_toggler = false,
|
||||
|
||||
-- Enable this only if your terminal has the colorscheme set which nvchad uses
|
||||
-- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal
|
||||
transparency = true,
|
||||
|
||||
hidden_statusline = {
|
||||
-- these are filetypes, not pattern matched
|
||||
"NvimTree",
|
||||
|
|
|
@ -110,10 +110,17 @@ fg("DashboardCenter", grey_fg)
|
|||
fg("DashboardShortcut", grey_fg)
|
||||
fg("DashboardFooter", grey_fg)
|
||||
|
||||
-- packer's floating window
|
||||
if require("utils").load_config().ui.transparency then
|
||||
bg("Normal", "NONE")
|
||||
bg("Folded", "NONE")
|
||||
fg("Folded", "NONE")
|
||||
bg("NvimTreeNormal", "NONE")
|
||||
bg("NvimTreeVertSplit", "NONE")
|
||||
fg("NvimTreeVertSplit", grey)
|
||||
bg("NvimTreeStatusLineNC", "NONE")
|
||||
fg("Comment", grey)
|
||||
end
|
||||
|
||||
-- For floating windows
|
||||
bg("NormalFloat", one_bg)
|
||||
fg("FloatBorder", blue)
|
||||
|
||||
-- set bg color for nvim
|
||||
-- bg("Normal", black)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local global_theme = "themes/" .. vim.g.nvchad_theme
|
||||
local global_theme = "themes/" .. require("utils").load_config().ui.theme
|
||||
local colors = require(global_theme)
|
||||
|
||||
local present1, gl = pcall(require, "galaxyline")
|
||||
|
@ -45,7 +45,7 @@ local icon_styles = {
|
|||
},
|
||||
}
|
||||
|
||||
local user_statusline_style = require("chadrc").ui.statusline_style
|
||||
local user_statusline_style = require("utils").load_config().ui.statusline_style
|
||||
local statusline_style = icon_styles[user_statusline_style]
|
||||
|
||||
local left_separator = statusline_style.left
|
||||
|
|
Loading…
Reference in a new issue