10
submitted 4 months ago* (last edited 4 months ago) by t0mri@lemmy.ml to c/neovim@programming.dev

idk im having this issue for a long time. itd be nice to have this fixed.

thanks

Edit: I that doesnt help:

  • term=xterm-... in shell config
  • set-option -ga terminal-overrides ",xterm-256color:Tc" in tmux config

solution:

thanks to mazadin for the solution.

im using foo terminal, so setting set-option -ga terminal-overrides ",foot:Tc" in tmux.config fixed it. (yeah im dumb)

you are viewing a single comment's thread
view the rest of the comments
[-] sorrybookbroke@sh.itjust.works 3 points 4 months ago* (last edited 4 months ago)

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 reload

You may also have to add the following to your nvim config:
set termguicolors

or set TERM to xterm-256color in your shell (example: export TERM="xterm-256color" for bash)

Though I doubt either are your problem.

Edit: fixed neovim configuration

[-] t0mri@lemmy.ml 2 points 4 months ago* (last edited 4 months ago)

Thanks for helping. But No luck with those. Tried them all. vim said there's no option like "term". Other two doesnt work :(

[-] tearsintherain@leminal.space 2 points 4 months ago* (last edited 4 months ago)

vim or neovim? what terminal emulator are you using? post your nvim init.lua file. try putting both of these in tmux.conf:

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

set-option -ga terminal-overrides ",xterm-256color:Tc"

This is for alacritty terminal emulator + tmux + neovim but may help put you on the right track with whatever te u might be using:

load more comments (8 replies)
load more comments (8 replies)
this post was submitted on 28 Jun 2024
10 points (81.2% liked)

Neovim

2149 readers
2 users here now

founded 1 year ago
MODERATORS