Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skanehira/denops-silicon.vim
A plugin to generate image from source code.
https://github.com/skanehira/denops-silicon.vim
deno denops vim-plugin
Last synced: 14 days ago
JSON representation
A plugin to generate image from source code.
- Host: GitHub
- URL: https://github.com/skanehira/denops-silicon.vim
- Owner: skanehira
- License: mit
- Created: 2022-09-02T20:34:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T00:02:40.000Z (7 months ago)
- Last Synced: 2024-05-02T02:29:11.584Z (7 months ago)
- Topics: deno, denops, vim-plugin
- Language: TypeScript
- Homepage:
- Size: 84 KB
- Stars: 42
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# denops-silicon.vim
A plugin to generate image from source code.
![denops-silicon](https://user-images.githubusercontent.com/7888591/188260665-c18a22c9-7cca-4747-998e-8231c6b472f4.gif)
## Requirements
- [denops.vim](https://github.com/vim-denops/denops.vim)
- Deno v1.25.0 or later
- xclip(only Linux)## Dependencies
Please refer silicon's
[dependencies](https://github.com/Aloxaf/silicon#dependencies)NOTE: You don't have to install `silicon`.
## Usage
```vim
" Generate image from current buffer and save to out.png
:Silicon out.png" Generate image from specified range and save to clipboard
:'<,'>Silicon
```## Options
The following options can customize the image.
```vim
let g:silicon_options = {
\ 'font': 'Cica',
\ 'no_line_number': v:false,
\ 'no_round_corner': v:false,
\ 'no_window_controls': v:false,
\ 'background_color': '#aaaaff',
\ 'line_offset': 1,
\ 'line_pad': 2,
\ 'pad_horiz': 80,
\ 'pad_vert': 100,
\ 'shadow_blur_radius': 0,
\ 'shadow_color': '#555555',
\ 'shadow_offset_x': 0,
\ 'shadow_offset_y': 0,
\ 'tab_width': 4,
\ 'theme': 'Solarized (dark)',
\ }
```## Author
skanehira