Closed mikesmithgh closed 1 year ago
Given that you:
... Have you considered just disabling the swap conflict warning?
In case you didn't know, you can do this by appending A
to your 'shortmess'
:
set shortmess+=A
Closing due to inactivity from OP.
I often open a separate terminal (Kitty on OSX) to run Diffview on a project that I already have open. If files are already open and created a swap file, then DiffviewOpen will throw an error.
Steps to reproduce:
mkdir tempdir && cd tempdir && git init && echo "test" > test.txt
nvim test.txt
nvim -c ":DiffviewOpen"
o
Workaround
Close open file to remove swap file before running
DiffviewOpen
or just use it in the same nvim session.