codesnap.nvim icon indicating copy to clipboard operation
codesnap.nvim copied to clipboard

Use local syntax highlighting and colorscheme

Open DyBev opened this issue 9 months ago • 5 comments

Less of an issue, more of a feature request.

How much work would it be to use the local highlighting and colorscheme when taking a snapshot?

DyBev avatar Apr 30 '24 01:04 DyBev

Hi @DyBev, thx for this issue reporting, actually CodeSnap now using syntect to implement code highlight. Users may have their own color scheme, it's a lot of work if need to change the strategy of highlight code.

mistricky avatar Apr 30 '24 06:04 mistricky

I see thanks for pointing me towards the syntax highlighter, I can just add the syntax highlight file to that repo then it would solve the issue I'm facing where a snapshot can't be taken at all

DyBev avatar May 02 '24 11:05 DyBev

CodeSnap does not support custom code theme for now, but we have planned to support for custom code theme in the future.

mistricky avatar May 03 '24 06:05 mistricky

Yeah why not just take a screenshot, fastest solution

LZDQ avatar Jun 02 '24 12:06 LZDQ

@LZDQ yes that is what I've been doing. I've moved away from the plugin now.

The comment isn't helpful. By your logic, why should this plugin exist in the first place, just take a screenshot after all you can just press cmd+shift+4 or cmd+shift+5 and take a screenshot or screen recording and you're done.

DyBev avatar Jun 03 '24 09:06 DyBev