From 99da37d060103d1e7d7c60e9701333369c3db42a Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 00:14:34 +0200 Subject: [PATCH] Fix tmux and nvim color display issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add COLORTERM=truecolor to zsh session variables for 24-bit color support - Update tmux terminal overrides to match xterm-256color terminal type - Add gruvbox-nvim plugin and set explicit background=dark in nvim config - Replace default colorscheme with gruvbox to match lualine theme 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- flake.nix | 3 +++ nvim.nix | 4 +++- tmux.nix | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 215ae50..5f36e26 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,9 @@ enable = true; defaultKeymap = "viins"; enableVteIntegration = true; + sessionVariables = { + COLORTERM = "truecolor"; + }; }; }; in diff --git a/nvim.nix b/nvim.nix index fa49109..fe90e47 100644 --- a/nvim.nix +++ b/nvim.nix @@ -9,6 +9,7 @@ nvim-treesitter.withAllGrammars lualine-nvim nvim-web-devicons + gruvbox-nvim ]; extraLuaConfig = '' -- Basic settings @@ -31,7 +32,8 @@ vim.g.mapleader = " " -- Set gruvbox colorscheme to match lualine theme - vim.cmd('colorscheme default') -- Use a simple colorscheme that works with lualine + vim.opt.background = "dark" + vim.cmd('colorscheme gruvbox') -- Nvim-tree setup require("nvim-tree").setup({}) diff --git a/tmux.nix b/tmux.nix index 8cf4bdd..4a72419 100644 --- a/tmux.nix +++ b/tmux.nix @@ -12,7 +12,7 @@ extraConfig = '' # Terminal settings set -g default-terminal "screen-256color" - set -ga terminal-overrides ",*256col*:Tc" + set -ga terminal-overrides ",xterm-256color:Tc" # Gruvbox Dark Theme # Status bar colors