Skip to content

recent window layout issue with edgy.nvim #498

Description

@disrupted

Description

there was a regression introduced in #431 that affects plugin interop. in my case edgy.nvim needs to know the buffer filetype at the time when the window is created.

When I revert this commit, edgy.nvim behaves normally again.

Also worth noting, even with the commit reverted, the example from that PR still works for me.

after/ftplugin/opencode_output.lua

vim.wo[0][0].conceallevel = 2

Steps to reproduce

  1. launch nvim
  2. open the opencode.nvim side-panel
  3. notice how the window layout looks messed up

Environment

  • Neovim version: v0.13.0-dev-1693+g0f7538c4ab
  • OpenCode version: 1.18.31
  • opencode.nvim version or commit: 471650b (main)
  • OS: macOS 27.0

Configuration

OpenCode configuration

irrelevant for this issue

opencode.nvim configuration

require('edgy').setup({
  animate = { enabled = false },
  options = { right = { size = 78 } },
  right = {
      {
          ft = 'opencode_output',
      },
      {
          ft = 'opencode',
          size = { height = 10 },
      },
  },
})

require('opencode').setup({})

Logs and screenshots

window layout issue
window layout issue

with the commit reverted
Image

Checklist

  • I have searched existing issues.
  • I have included all relevant details.
  • I have removed sensitive information from configs and logs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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