mistricky / codesnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim
MIT License
483 stars 16 forks source link

Fix - Change documentation on how to hide watermark #17

Closed elliottminns closed 4 months ago

elliottminns commented 4 months ago

In the README it mentions hiding the watermark by setting the value to nil. Unfortunately this doesn't work, as when iterating over the configuration, lua will omit any nil values, causing them to not get merged.

Instead, it's possible to remove the watermark by instead setting the value to an empty string "". This PR adds in an update to the documentation to reflect that.

See attached screenshots below.

With nil

Screenshot from 2024-02-23 21-00-55

With empty string

Screenshot from 2024-02-23 21-01-47

mistricky commented 4 months ago

Hi, thx for fixing the mistake in the document, and thx for using codesnap.nvim :)