When I open a file that has several swap files on the system, I first get the prompt asking me if I want to open/delete/recover etc. If I choose recover, a list will be opened, asking me to select which swap file to recover.
The issue I am having is that this list is closed after about two seconds, leaving me with just the prompt Enter number of swap file to use, without any visible options.
Minimal init.lua to reproduce this issue:
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
if vim.v.shell_error ~= 0 then
error('Error cloning lazy.nvim:\n' .. out)
end
end
---@type vim.Option
local rtp = vim.opt.rtp
rtp:prepend(lazypath)
require('lazy').setup {
{
'mason-org/mason-lspconfig.nvim',
opts = {},
dependencies = {
{ 'mason-org/mason.nvim', opts = {} },
'neovim/nvim-lspconfig',
},
},
}
When I open a file that has several swap files on the system, I first get the prompt asking me if I want to open/delete/recover etc. If I choose recover, a list will be opened, asking me to select which swap file to recover.
The issue I am having is that this list is closed after about two seconds, leaving me with just the prompt Enter number of swap file to use, without any visible options.
Minimal init.lua to reproduce this issue: