mistricky / codesnap.nvim

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

No theme option #87

Closed star-light-nova closed 1 month ago

star-light-nova commented 1 month ago

I didn't like the backgrounds. I just wanted a solid codesnippet, without backgrounds. I just added this to the theme:

"none" => vec![
                GradientStop::new(0., Color::from_rgba8(0, 0, 0, 0))
            ],

Example: with_background no_background

Try to drag the image and you will see the difference.

star-light-nova commented 1 month ago

Actually, would be better to have an image width and height aligned to the snippet's box, but I have no knowledge in Rust Programming Language.

mistricky commented 1 month ago

Hi @star-light-nova, thx for the issue reporting. Actually, it's easy to provide a feature to take code snapshots without background, however, there are some scenarios that need to be considered.

The purpose of background to provide a specific color or visual appearance, if no background is provide, we also need to support custom code theme and custom background of code snippet window to fit different background in real life. So take code snapshot without background will be support in the future, but not for now.

star-light-nova commented 1 month ago

Hi @mistricky.

Thank you for your reply. Understood.

Appreciate it.