nvim-fzy
nvim-fzy copied to clipboard
Opening a file with a swap file existing yields an error
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
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.
Hi,
sorry for the late reply. Yes, it worked, thanks!