Skip to content

bug: cli not displaying colors correctly with tmux session #301

@gabrielrov

Description

@gabrielrov

Did you check docs and existing issues?

  • I have read all the sidekick.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of sidekick.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.1 Build type: Release LuaJIT 2.1.1741730670

Operating system/version

Ubuntu 24.04.4 LTS

Describe the bug

If opening the cli specifically with a tmux session, color highlights are not displayed faithfully to the opened instance.

sidekick:
Image

original session:
Image

When disabling cli.mux.enabled or just opening a opencode instance with :term it works fine.

My tmux version is 3.4.

Steps To Reproduce

Run :Sidekick cli toggle

Expected Behavior

Colors to match original session.

Repro

vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))()

require('lazy.minit').repro({
  spec = {
    {
      'folke/sidekick.nvim',
      opts = {
        cli = {
          mux = {
            enabled = true,
            backend = 'tmux',
            create = 'terminal',
          },
        },
      },
    },
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions