snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

bug (snacks.notify): an error 'Failed to close window' is thrown when pressing <C-f> in the cmdline while the notification is open.

Open quebn opened this issue 1 week ago • 0 comments

Did you check docs and existing issues?

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

Neovim version (nvim -v)

NVIM v0.11.0-dev-a49f95d887

Operating system/version

Archlinux

Describe the bug

an error with a message 'failed to close window' appears when trying to open the cmdline buffer window while a notification window is open. as seen below.

Image

Steps To Reproduce

1, create a notification via vim.notify 2. while the notification is open go to the cmdline and press <C-f> 3. error shows when the notification window should close.

Expected Behavior

no error

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/snacks.nvim",
      opts = {
        notifier = { enable = true },
      },
    },
    -- add any other plugins here
  },
})

quebn avatar Feb 17 '25 17:02 quebn