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)

  • t0mri@lemmy.mlOP
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    5 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 :(

    • sorrybookbroke@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago

      Ah shit, that sucks, sorry to hear.

      Sorry on that command if you’re using lua to configure the correct setting should be

      vim.opt.termguicolors = true
      

      Or in your init.vim vim set termguicolors

      If you’re still up to trying some stuff, last thing I can think of is tmux deciding not to take the setting. Forcing tmux to use true color may help with set -ag terminal-overrides ",$TERM:Tc" or launching with tmux -2 may help, you’ll have to source the tmux config again of course. Also confirming that your terminal supports true color

      • t0mri@lemmy.mlOP
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        I tried that. Not working. Im really sorry, I shouldve mentioned this on the original post itself. I did some searches and tried these already. Im really sorry

        • sorrybookbroke@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          5 months ago

          Yeah thought you may have done so, still good to check. Hope the best for you but I can’t think of anything else myself, unless you have a background set in tmux and a transparent background in neovim

          For others who may help, what terminal are you using? What is is the output of echo $TERM?

            • mazadin@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              5 months ago

              Try this in tmux.conf:

              set-option -ga terminal-overrides ",foot:Tc"
              

              These overrides apply to the TERM you are using outside of tmux (where this is running).

    • tearsintherain@leminal.space
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      5 months ago

      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: