Skip to content

Conversation

@hschne
Copy link
Contributor

@hschne hschne commented Mar 25, 2025

Currently, setting show_buf is also used to pass the highlight option to Silicone. Unfortunately, that means that is impossible to create images of the whole buffer without any visual highlights as the line with the cursor is always highlighted.

Solution

This PR adds a new opt highlight to control whether lines should be highlighted or not. When set, the behaviour is identical to the previous one. The visual selection will be highlighted. If it is not set, then no highlight. Duh.

The Readme has been updated. I snuck in a typo fix and some formatting as well.

Buffer with Highlight

require("silicon").visualise_api({ to_clip = true, show_buf = true, highlight=true})

Code_2025032520:47

Without Highlight

require("silicon").visualise_api({ to_clip = true, show_buf = true })

Code_2025032520:49
eadme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant