Skip to content

bug: window-local terminal options leak into :edit-replaced buffers #294

@amadeus

Description

@amadeus

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.13.0-dev-110+g8603fc9180

Operating system/version

26.3.1

Describe the bug

When I run :edit somefile from a Sidekick CLI buffer, the new file buffer reuses the same window and inherits Sidekick’s terminal-specific window-local options, so number, relativenumber, signcolumn, and statuscolumn stay disabled in the file I just opened. This seems specific to Sidekick rather than terminal buffers in general, since the same flow does not reproduce with a plain Neovim :terminal; Sidekick appears to apply terminal UI options to the window but does not restore them once that window stops showing the Sidekick terminal buffer.

Steps To Reproduce

  1. Open a sidekick cli buffer
  2. Perform :edit some-file.md

Expected Behavior

I'd expect the window/buffer to not inherit the sidekick options, and instead utilize what my normal neovim config does.

It should work how neovim does with general terminal buffers.

Bug:

CleanShot.2026-04-08.at.12.27.10.mp4

Expected Functionality:

CleanShot.2026-04-08.at.12.29.25.mp4

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 = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a whilewontfixThis issue will not be fixed or implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions