A neovim plugin for viewing images.
This plugin uses chafa under the hood to convert images to an output that can be printed in a terminal. It then uses baleia to colorize text with ANSI escape sequences
- Install chafa and make sure it is in your path
- Neovim 0.7+
use {
"princejoogie/chafa.nvim",
requires = {
"nvim-lua/plenary.nvim",
"m00qek/baleia.nvim"
},
}
require("chafa").setup({
render = {
min_padding = 5,
show_label = true,
},
events = {
update_on_nvim_resize = true,
},
})
This plugin creates a ViewImage
user command which you can manually call in svg files to view them in a separate buffer.