Skip to content

bug: subsequent help buffers not recognized as edgy windows #139

@tummetott

Description

@tummetott

Did you check docs and existing issues?

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

Neovim version (nvim -v)

NVIM v0.11.4 Build type: Release LuaJIT 2.1.1741730670

Operating system/version

MacOs 15.6

Describe the bug

I configured edgy.nvim to open help windows at the bottom:

opts = {
    bottom = {
        {
            title = 'HELP',
            ft = 'help',
            -- only show help buffers
            filter = function(buf)
                return vim.bo[buf].buftype == 'help'
            end,
        },
    }
}

When I open a help page (e.g. :h treesitter), it correctly appears in the edgy bottom panel.
However, if I keep edgy open and then open another help page (e.g. :h lsp), the new help buffer is displayed at the bottom, but it’s not recognized as an edgy window — the winbar shows that it’s a regular window instead.

This behavior also occurs in a few other cases I can’t fully recall, but it seems that when switching between help buffers, edgy sometimes fails to handle the new window correctly.

Steps To Reproduce

  1. Use repro.lua
  2. Open Neovim.
  3. Run :h treesitter — the help window appears correctly inside the edgy bottom panel.
  4. Without closing the edgy window, open another help page, e.g. :h lsp.
  5. Observe that the new help buffer is shown at the bottom, but the winbar indicates it’s not managed by edgy.

Expected Behavior

Every help window is an edgy window

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/edgy.nvim",
            opts = {
                bottom = {
                    {
                        title = 'HELP',
                        ft = 'help',
                        -- only show help buffers
                        filter = function(buf)
                            return vim.bo[buf].buftype == 'help'
                        end,
                    },
                }
            }
        },
    },
})

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