Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nord Tmux preventing other application colours from showing #54

Closed
prdanelli opened this issue Jan 2, 2021 · 3 comments
Closed

Nord Tmux preventing other application colours from showing #54

prdanelli opened this issue Jan 2, 2021 · 3 comments

Comments

@prdanelli
Copy link

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
Copy link
Author

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

@arcticicestudio
Copy link
Contributor

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.

@prdanelli
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants