nvim-fzy icon indicating copy to clipboard operation
nvim-fzy copied to clipboard

Opening a file with a swap file existing yields an error

Open myrrc opened this issue 10 months ago • 1 comments

Steps to reproduce: open two instances of nvim with a single file. Second nvim instance will error on start:

Error executing vim.schedule lua callback: vim/_editor.lua:341: nvim_exec2(): Vim(edit):E325: ATTENTION
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua:341: in function 'cmd'
        /home/myrrc/.local/share/nvim/lazy/nvim-fzy/lua/fzy.lua:79: in function 'on_choice'
        /home/myrrc/.local/share/nvim/lazy/nvim-fzy/lua/fzy.lua:200: in function </home/myrrc/.local/share/nvim/lazy/nvim-fzy/lua/fzy.lua:199>

Nvim 0.9.5, nvim-fzy: lastest master

myrrc avatar Feb 22 '25 11:02 myrrc

Can you try with https://github.com/mfussenegger/nvim-fzy/pull/45 ? This will generally treat any errors during :e ... as warning.

Although in latest nightly (maybe also nvim 0.10) having swap file conflicts already led to a warning instead of an error due to changes in nvim itself.

mfussenegger avatar Feb 27 '25 09:02 mfussenegger

Hi,

sorry for the late reply. Yes, it worked, thanks!

myrrc avatar Mar 11 '25 18:03 myrrc