Skip to content

This NeoVim plugin generates ✨fancy✨ images from your code

Notifications You must be signed in to change notification settings

atlj/Pixie.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixie.nvim

This NeoVim plugin generates ✨fancy✨ images from your code

Installation

This package requires NodeJS to be installed. See How to install NodeJS

If you are on Linux, please make sure to take a look at this page.

  use({
    "atlj/Pixie.nvim",
    run = function() vim.cmd.PixieInstall() end
  })

Usage

  1. Highlight the text you wish to create a Screenshot from
  2. Use :PixieCopy command to copy the generated image to your clipboard
  3. You can now paste the generated image

How does this work

This plugin uses puppeteer to headlessly render and take a screenshot of an auto-generated HTML file.

Similar plugins

  1. vim-silicon uses silicon to create images using GPU.

Roadmap

G: Issues to fix

  1. If a line is too wide, it crashes
  2. Quality multiplier cannot take a float value, and it is NaN on javascript when not defined

H: Quality of Life

  1. Add PixieSave command
  2. Add theming support and new themes
  3. Make the generated screenshots bordered
  4. Get the quality etc. from a config

Next steps:

  1. Create a simple logo using Midjourney
  2. Share on Twitter