ghifarit53 / tokyonight-vim

A clean, dark vim colorscheme that celebrates the lights of downtown Tokyo at night, based on a VSCode theme by @enkia with the same name [Archived because I'm no longer using this]
MIT License
557 stars 48 forks source link

Color name or number not recognized when using tmux #9

Open RossComputerGuy opened 3 years ago

RossComputerGuy commented 3 years ago
Error detected while processing function <SNR>13_HL:
line   15:
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=NONE
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=NONE
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=italic
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=underline
E421: Color name or number not recognized: ctermfg=Orange ctermbg=NONE cterm=bold

OS: Pop!_OS Term: Alacritty vimrc: https://github.com/RossComputerGuy/dotfiles/blob/master/user/.vimrc $TERM: screen

Note: This issue doesn't occur while on Void Linux but is present on Pop!_OS

ghifarit53 commented 3 years ago

Sorry for the late reply, got busy in the last few weeks. I haven't tested it yet with tmux, but my guess is because orange isn't the part of ansi color name (red,yellow,green,blue,cyan,magenta,white) and thus tmux couldn't know it

Note: This issue doesn't occur while on Void Linux but is present on Pop!_OS

Now I'm not sure about this. Can you provide the whole tmux.conf and .bashrc (or whatever the file you use to define TERM=screen)

RossComputerGuy commented 3 years ago

My .zshrc does not define TERM and I do not have a tmux.conf file.

Geordinateur commented 3 years ago

Hi, may be do you have forget "set termguicolors" Try witch Kitty? i have a color on Kitty but not on Tmux or Alacritty :(

RossComputerGuy commented 3 years ago

@ghifarit53 that messes up the colors for me

RossComputerGuy commented 3 years ago

https://github.com/ghifarit53/tokyonight-vim/issues/4#issuecomment-706660872

Geordinateur commented 3 years ago

Ok i have the same error with Alacritty + Zsh and without set termguicolors... TERM=xterm ?

kbwo commented 3 years ago

I faced same issue with MacOS + Alacritty + tmux. I added this line to my .tmux.conf then worked.

set -g default-terminal "xterm-256color"