krivahtoo /silicon.nvim

Neovim plugin for silicon in Rust

★ 298⑂ 8👁 1⑃ 26● 37▤ 15◈ 0
RustMITCreated 2022-08-27
298
stars
8
forks
1
watchers
26
prs
37
issues
15
releases
0
discussions

README

silicon.nvim

Render beautiful image of your code in neovim using silicon,
highlighted either with a syntect theme or with Neovim's tree-sitter and your current colorscheme.


!License
!Neovim version





https://github.com/krivahtoo/silicon.nvim/assets/41364823/d67912b0-190e-4990-bf79-039e79f8b4ad






 Installation

 Requirements

- nvim v0.11
- [Optional] cargo and rust toolchain
- [Optional] a tree-sitter parser for the filetype, when using theme = 'nvim'

 Packer

lua
use {'krivahtoo/silicon.nvim', run = './install.sh'}


Build from source (requires cargo)

lua
use {'krivahtoo/silicon.nvim', run = './install.sh build'}


 Vim-Plug

vim
Plug 'krivahtoo/silicon.nvim', { 'do': './install.sh' }


Build from source (requires cargo)

vim
Plug 'krivahtoo/silicon.nvim', { 'do': './install.sh build' }


 Configuration

Initialize the plugin.

Lua init file:
lua
require('silicon').setup({
  font = 'FantasqueSansMono Nerd Font=16',
  theme = 'Monokai Extended',
})


Vimscript init file:
vim
lua 

!image



 Usage

Command:

bash
:'Silicon[!] [file]
 Defaults to clipboard if [file] is not specified.
 With bang file is saved to specified output.file in the
 output.format specified
 Also mapped to 'SS' in Visual mode

Top issues

Latest release

v0.6.1 v0.6.1 2026-10-24
0.6.1 (2026-10-24)


 Bug Fixes

 Added necessary dependencies before building (60) (f6391f6)

Snapshot: 2026-11-11T15:31:17Z · Data license Apache-2.0 · JSON