Aloxaf / silicon

Create beautiful image of your source code.
MIT License
3.13k stars 84 forks source link

NeoVim package silicon.lua #212

Closed 0oAstro closed 1 year ago

0oAstro commented 2 years ago

Hi!

I found silicon so useful so I wrote a simple nvim plug-in for it: https://github.com/narutoxy/silicon.lua

ilias777 commented 2 years ago

I tried both, silicon.lua for Neovim and silicon cli in the terminal and they are awesome. I am on Mac and unfortunately I can't use silicon.lua because the version 0.5.1 is required and in homebrew is the silicon version on 0.4.3.

So if it's possible please @Aloxaf upgrade in homebrew the latest version. Thank you very much for this amazing tool 😊

zanglg commented 1 year ago

Got the same issue, Mac's silicon version was not up to date.

0oAstro commented 1 year ago

You can actually use older versions You need to do something like

require("silicon").setup({theme="Dracula"})

By default the plug-in uses the new functionality of 0.5.1 to create themes matching editor theme

ilias777 commented 1 year ago

Yes it works now with theme = 'Dracula'

Unfortunately it not exist a command like :Silicon and I have to copy and paste the lua code every time in the command line to generate the screenshots. But it works! Thx 😊

0oAstro commented 1 year ago

You can actually first select code in visual mode then use the command given in README of project in the meantime.

Aloxaf commented 1 year ago

Seems good, added to related projects.

Aloxaf commented 1 year ago

I tried both, silicon.lua for Neovim and silicon cli in the terminal and they are awesome. I am on Mac and unfortunately I can't use silicon.lua because the version 0.5.1 is required and in homebrew is the silicon version on 0.4.3.

So if it's possible please @Aloxaf upgrade in homebrew the latest version. Thank you very much for this amazing tool blush

I'd like to. But homebrew package is not matained by me.

heygarrett commented 1 year ago

The homebrew package has been updated:
https://github.com/Homebrew/homebrew-core/pull/114853

0oAstro commented 1 year ago

Seems good, added to related projects.

Thanks. Closing this issue then.

Thanks again for the awesome tool.