nordtheme/tmux

Nord Tmux preventing other application colours from showing

prdanelli opened this issue · 3 comments

Hello. This seems kinda silly, but nord tmux seems to be preventing Vim colour schemes from working.

I've followed all of the installation instructions and added a terminal theme to Gnome Terminal and Tmux its self looks great, but whenever its running, vim colour schemes seem to be suppressed and aren't showing as anything more than basic white text.

Vim without Tmux:
image

Vim inside of Tmux, without terminal theme:
image

Vim inside of Tmux, with terminal running nord theme:
image

I dont think its related to the theme, seems to be an issue with Tmux generally :-/

Hi @prdanelli 👋🏼

Running applications that provide highlighting within tmux is a bit tricky and requires some extra configurations.
In case of Vim you can check out some issues in the repository of the Nord Vim port project, e.g. nordtheme/vim#166 that includes some details about required tmux settings in your vimrc as well as general environment variables.

@arcticicestudio Thank you for replying. I figured it out in the end:

let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set background=dark
" This line MUST come after the colors scheme settings above
colorscheme nord

The order of the settings made a massive difference and I needed to set the special characters above everything else.