From b33a58b593ac3178741bf9713247418148ae07d8 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 18 Nov 2019 17:16:32 +0100 Subject: [PATCH] Fix true color support for nvim in tmux Uses the correct TERM env var and sets the correct rgb setting for surrounding terminal. --- .config/tmux/tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 66f1b37..f22af89 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -25,7 +25,8 @@ set -g terminal-overrides "xterm*:XT:smcup@:rmcup@" set-window-option -g automatic-rename on set-option -g set-titles on set -g mouse on -set -g default-terminal xterm-256color +# set -g default-terminal xterm-256color +set -g default-terminal tmux-256color set -g status-keys vi set -g history-limit 10000 @@ -37,6 +38,8 @@ setw -g aggressive-resize on # No delay for escape key press set -sg escape-time 0 +# enable true color support for nvim +set -ga terminal-overrides ',xterm-256color:RGB' # Set Cursor terminal override, so nvim can change cursor style when changing modes # more info see nvim, :help tui-cursor-shape set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'