Skip to content

fix(terminal): make terminal buffer unlisted to prevent it appearing in bufferline#214

Merged
nickjvandyke merged 2 commits intonickjvandyke:mainfrom
mortenhaahr:fix/terminal-unlisted
Mar 24, 2026
Merged

fix(terminal): make terminal buffer unlisted to prevent it appearing in bufferline#214
nickjvandyke merged 2 commits intonickjvandyke:mainfrom
mortenhaahr:fix/terminal-unlisted

Conversation

@mortenhaahr
Copy link
Copy Markdown
Contributor

Description

Changes the opencode terminal buffer from listed to unlisted to prevent it from appearing in the buffer list for plugins like bufferline.nvim (the default in LazyVim).

Note: Paragraph below is AI-generated, I am not an expert on this:
Terminal buffers are conventionally unlisted in Neovim (following the pattern of toggleterm, FTerm, etc.). This keeps the buffer list clean while maintaining full functionality through opencode's own commands.

Related Issue(s)

No issue

Screenshots/Videos

Notice the top bar in the screenshots:

Before change:
image

After change:
image

Copilot AI review requested due to automatic review settings March 24, 2026 08:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates how opencode creates its terminal buffer so it doesn’t appear in buffer lists (e.g., bufferline.nvim), aligning with common Neovim terminal plugin behavior.

Changes:

  • Create the terminal buffer as unlisted by changing nvim_create_buf(true, false) to nvim_create_buf(false, false).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nickjvandyke
Copy link
Copy Markdown
Owner

Thx!

@nickjvandyke nickjvandyke merged commit 4f4ff2c into nickjvandyke:main Mar 24, 2026
2 checks passed
@mortenhaahr
Copy link
Copy Markdown
Contributor Author

mortenhaahr commented Mar 25, 2026

Thanks for accepting the PR 👍

@mortenhaahr mortenhaahr deleted the fix/terminal-unlisted branch March 25, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants