willothy / flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
https://luarocks.org/modules/willothy/flatten.nvim
MIT License
473 stars 13 forks source link

How to avoid swap file warning E325? #88

Closed willothy closed 7 months ago

willothy commented 8 months ago

Discussed in https://github.com/willothy/flatten.nvim/discussions/82

Originally posted by **eddyecho** November 16, 2023 If I already have a file open in an existing buffer and then try to open the file again in terminal mode with simple `nvim file`, how do i avoid an E325? I am coming from neovim remote which handled this out of box so I'm wondering if I am missing something here?

I'd like to find a fix for this before releasing 1.0.0, if possible.

willothy commented 7 months ago

Addressed upstream here: https://github.com/neovim/neovim/pull/25336

Users can also use the SwapExists autocmd for custom behavior here.