AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
931 stars 19 forks source link

fix: event without regcontents #110

Closed ptakpatryk closed 7 months ago

ptakpatryk commented 7 months ago

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 from should_add to suppress the error.

Before - yanking from nvim-tree: image

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): image

AckslD commented 7 months ago

@ptakpatryk thanks for the fix! Strange that regcontents is nil but seems indeed like a good solution.