From b78c0484479f33b1f9a51d9bffaf1ea36504a2e6 Mon Sep 17 00:00:00 2001 From: harivansh-afk Date: Sat, 25 Oct 2025 22:11:10 -0400 Subject: [PATCH] fix color for commit --- lua/plugins/colorscheme.lua | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index 3f3cca8..1a51331 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -30,38 +30,11 @@ return { priority = 1000, lazy = false, config = function() - -- Auto-detect light/dark mode - local function set_theme() - -- Check if running in VSCode - if vim.env.VSCODE or vim.env.TERM_PROGRAM == "vscode" then - vim.o.termguicolors = true - vim.o.background = "light" - require('solarized').setup({}) - vim.cmd.colorscheme("solarized") - return - end - - -- Check COLORFGBG for other terminals - if os.getenv("COLORFGBG") then - local colors = vim.split(os.getenv("COLORFGBG"), ";") - if colors[2] and tonumber(colors[2]) > 7 then - vim.o.termguicolors = true - vim.o.background = "light" - require('solarized').setup({}) - vim.cmd.colorscheme("solarized") - return - end - end - - -- Default to dark with Gruvbox - vim.o.background = "dark" - vim.cmd.colorscheme("gruvbox") - end - - -- Set theme on startup - set_theme() - - -- Add command to manually toggle + -- Always use Gruvbox dark + vim.o.background = "dark" + vim.cmd.colorscheme("gruvbox") + + -- Add command to manually toggle if needed vim.api.nvim_create_user_command("ToggleTheme", function() if vim.g.colors_name == "gruvbox" then vim.o.termguicolors = true