kjuq / sixelview.nvim

View images on Neovim via Sixel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sixelview.nvim

View images within your Neovim via Sixel!

Disclaimer

This plugin is in experimental state. So sometimes displayed contents of a buffer break. When you encounter this issue, type <C-l> to reload a screen.

DEMO

demo

Requirements

  • Terminal which supports Sixel (Alacritty, Wezterm, iTerm2, etc)
  • libsixel
    • For MacOS user, brew install libsixel

Installation

Lazy.nvim

{
	"kjuq/sixelview.nvim",
	opts = {},
}

After installing this plugin, a image will be shown when a buffer which loads an image file is opened.

Configuration

{
	"kjuq/sixelview.nvim",
	opts = {
		-- a table to specify what files should be viewed by this plugin
		pattern = {},
		-- whether to show an image automatically when an image buffer is opened
		auto = true,
		-- time of delay before showing image
		-- try setting this duration longer if you have a trouble showing image
		delay_ms = 100,
	},
}

User Command

SixelView

View image manually. Use this within a buffer which loads an image file.

About

View images on Neovim via Sixel

License:Do What The F*ck You Want To Public License


Languages

Language:Lua 100.0%