this post was submitted on 28 Jun 2024
1 points (100.0% liked)
Neovim
2159 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Huh, that is quite odd. Have you set tmux to true colour? If not that may be the issue, though I don't see why it would select those specific colours.
Incase you haven't, here's the configuration to do so. Place the following in your tmux.conf located at
~/.config/tmux/tmux.conf
or~/tmux.conf
set -g default-terminal "screen-256color"
you should have to run
tmux source ~/.config/tmux/tmux.conf
to get it to reloadYou may also have to add the following to your nvim config:
set term=screen-256color
or set
TERM
toxterm-256color
in your shell (example:export TERM="xterm-256color"
for bash)Though I doubt either are your problem.
Thanks for helping. But No luck with those. Tried them all. vim said there's no option like "term". Other two doesnt work :(
vim or neovim? what terminal emulator are you using? post your nvim init.lua file.
running this in your terminal do you see the color band?
awk 'BEGIN{ s="/\/\/\/\/\"; s=s s s s s s s s; for (colnum = 0; colnum<77; colnum++) { r = 255-(colnum255/76); g = (colnum510/76); b = (colnum*255/76); if (g>255) g = 510-g; printf "\033[48;2;%d;%d;%dm", r,g,b; printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b; printf "%s\033[0m", substr(s,colnum+1,1); } printf "\n"; }'
This is for alacritty terminal emulator + tmux + neovim but may help put you on the right track with whatever te u might be using: