You need to setup atomic write. Neovim lua:
```lua
vim.opt.writebackup = true
vim.opt.backup = false
vim.opt.backupcopy = 'auto'
```
this is a good idea in general, not just when using bun
```lua
vim.opt.writebackup = true
vim.opt.backup = false
vim.opt.backupcopy = 'auto'
```
this is a good idea in general, not just when using bun