Sadly regcontents don't exist when copying from nvim-tree the event is vim.empty_dict() so for now it's best to return from should_add to suppress the error.
Before - yanking from nvim-tree:
After (no errors, value is added to register but not neoclip - which was like this all the time it's just not showing the annoying error that has to be acknowledged every time):
Fixes #109
Sadly regcontents don't exist when copying from nvim-tree the event is
vim.empty_dict()
so for now it's best to return fromshould_add
to suppress the error.Before - yanking from nvim-tree:
After (no errors, value is added to register but not neoclip - which was like this all the time it's just not showing the annoying error that has to be acknowledged every time):