diff --git a/lua/chadrc.lua b/lua/chadrc.lua index ab59eb9..3e6d52b 100644 --- a/lua/chadrc.lua +++ b/lua/chadrc.lua @@ -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", diff --git a/lua/default_config.lua b/lua/default_config.lua index f8bd1aa..7f87246 100644 --- a/lua/default_config.lua +++ b/lua/default_config.lua @@ -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", diff --git a/lua/highlights.lua b/lua/highlights.lua index 88604f6..61023ae 100644 --- a/lua/highlights.lua +++ b/lua/highlights.lua @@ -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) diff --git a/lua/plugins/statusline.lua b/lua/plugins/statusline.lua index f6e0ad9..4f9a4ca 100644 --- a/lua/plugins/statusline.lua +++ b/lua/plugins/statusline.lua @@ -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