lose vim colorscheme in tmux mode

后端 未结 20 1804
说谎
说谎 2020-12-12 09:13

I\'m running iterm2 and when I\'m in tmux mode the colorscheme I have set in vim does not show up. Only the color scheme I\'ve set in iterm. If I run vim from shell the colo

20条回答
  •  隐瞒了意图╮
    2020-12-12 09:41

    Using these two lines in my .tmux.conf worked for me, I'm using Ubuntu 20.04 with Alacritty.

    set  -g default-terminal "tmux-256color"
    set -ag terminal-overrides ",alacritty:RGB"
    

    Found them in an issue on alacitty's repo, in the comment provided by YodaEmbedding:

    https://github.com/alacritty/alacritty/issues/109

提交回复
热议问题