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 modeTop issues
#40Calling from visual mode gives "E481: No range allowed"11 comments · 2023-08-16#45cache_loader: module silicon not found4 comments · 2024-03-06#44Error executing lua [string ":lua"]:200: module 'silicon' not found:4 comments · 2024-03-05#39Not correctly parsing my setup config4 comments · 2023-07-16#29Simplify clipboard interface2 comments · 2023-02-27#54Crashing on MacOS in nvim and neovide1 comments · 2024-12-20#42Allow to add callback on completion1 comments · 2023-08-27#41Better docs for changing theme1 comments · 2023-08-24
Latest release
v0.6.1 v0.6.1 2026-10-240.6.1 (2026-10-24) Bug Fixes Added necessary dependencies before building (60) (f6391f6)