famiu/bufdelete.nvim

[Not a bug]

Slushee-a opened this issue · 2 comments

Neovim version

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Describe the bug
Neovim shows a warning when opened: Error detected while processing [config file]
When trying to update vim-plug, this error is shown:

Error detected while processing /home/slushee/.config/nvim/init.vim:
bufdelete.nvim: No buffers were deleted

The error doesn't happen when I comment out

require('bufdelete').bufdelete(0, true)

To Reproduce
Steps to reproduce the behavior:

  1. Install budelete.nvim with vim plug
  2. Add require('bufdelete').bufdelete(0, true) to the config file
  3. Open nvim / try to update vim-plug

Expected behavior
No error ocurring

Does this error occur in the minimal init file?
It does not.

Screenshots
image
image
image

Additional context
This had never happened until not too long ago.

famiu commented

Why would you put require('bufdelete').bufdelete(0) in your config file?

Also, there is no bug, it is an issue with your config. There is no buffer being deleted so this is perfectly expected behavior.

Oh, I thought that was supposed to go in the config. I've had it there for the longest time and it hasn't complained once.
Thanks! This was just me being dumb