Skip to content

bug: file recovery warning appears behind explorer when opening a recovered file from explorer #2650

@SlyCedix

Description

@SlyCedix

Did you check docs and existing issues?

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

Neovim version (nvim -v)

v0.11.5

Operating system/version

Linux 6.6.119-1-MANJARO

Describe the bug

Image

Steps To Reproduce

  1. Open a file in nvim
  2. Make some edit to it
  3. Kill nvim without saving (this leaves the swap file)
  4. Open nvim in the directory containing the file
  5. Open explorer :lua Snacks.explorer()
  6. Select recovered file in nvim

Expected Behavior

the warning buffer should float over the explorer buffer

Repro

-- reproducable in default environment
-- explorer opened with :lua Snacks.explorer()
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 = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue or PR has been inactive for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions