Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to set the padding size #108

Closed
s1n7ax opened this issue Jun 6, 2024 · 6 comments · Fixed by #112
Closed

Way to set the padding size #108

s1n7ax opened this issue Jun 6, 2024 · 6 comments · Fixed by #112
Labels
enhancement New feature or request

Comments

@s1n7ax
Copy link

s1n7ax commented Jun 6, 2024

Right now padding of the outer container is pretty thick. Is there a way to shrink it down?

@s1n7ax
Copy link
Author

s1n7ax commented Jun 6, 2024

Off topic. Just wondering why you didn't make it a neovim plugin in entirety with out breaking it into two, cli application and a plugin that uses the cli application.

@mistricky
Copy link
Owner

Hi @s1n7ax, thx for this issue.

Right now padding of the outer container is pretty thick. Is there a way to shrink it down?

That's a great idea, I'll consider allowing custom padding config in the future.

Off topic. Just wondering why you didn't make it a neovim plugin in entirety with out breaking it into two, cli application and a plugin that uses the cli application.

You are right, make the generator of CodeSnap as CLI or Library is better, that can wrap as VSCode plugin or something, but CodeSnap written in my spare time, I don't have energy to do these things right now, if someone can PR for this things, I'll appreciate :)

@mistricky
Copy link
Owner

Hi @s1n7ax, CodeSnap now supports customize background padding of snapshot, upgrade to v1.4.1 and follow https://github.com/mistricky/codesnap.nvim?tab=readme-ov-file#customize-background-padding to get start. Thx for the issue reporting again. :)

@s1n7ax
Copy link
Author

s1n7ax commented Jul 4, 2024

@mistricky Type I guess bg_padding = null. It should be nil right?

@mistricky
Copy link
Owner

Oh god, sorry my mind didn't switch language to Lua 😅. You're right, I'll fix the typo later.

@s1n7ax
Copy link
Author

s1n7ax commented Jul 4, 2024

Gorgeous. Can't wait to do a presentation.

image

@s1n7ax s1n7ax closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants