ful1e5 / onedark.nvim

Atom's iconic One Dark theme for Neovim, written in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tmux support

mawkler opened this issue · comments

Is this colorscheme supposed to look the same in tmux? To me the colors look odd in tmux. I've read online that the following should make colorschemes look the same in tmux, but it doesn't seem to work. Is it became this colorscheme doesn't support 24-bit RGB colors?

if exists('$TMUX')
  set notermguicolors
endif

To the left in the screenshot below is what the colorscheme looks when not using tmux, and to the right is how it looks when Neovim is running inside of tmux:

neovim in tmux

This theme is working fine to me though. I ran it with tmux and without but can't find any color difference.
image

I also did quick google about your issue and found some StackOverflow regarding this issue. I hope this helps you 🤞
https://stackoverflow.com/questions/10158508/lose-vim-colorscheme-in-tmux-mode/41626377
https://stackoverflow.com/questions/66757229/vim-not-using-proper-colorscheme-in-tmux

I had already tried everything in the first link without success before posting here, but after trying the solution in your second link I got it working by adding this to my ~/.tmux.conf:

set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"

Thank you :)