nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.06k stars 141 forks source link

Nord Tmux preventing other application colours from showing #54

Closed prdanelli closed 3 years ago

prdanelli commented 3 years ago

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

prdanelli commented 3 years ago

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

arcticicestudio commented 3 years ago

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. arcticicestudio/nord-vim#166 that includes some details about required tmux settings in your vimrc as well as general environment variables.

prdanelli commented 3 years ago

@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.