Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/adelarsq/image_preview.nvim

Image Preview for Neovim 🖼
https://github.com/adelarsq/image_preview.nvim

image-preview neovim plugin terminal wezterm

Last synced: about 2 months ago
JSON representation

Image Preview for Neovim 🖼

Lists

README

        

# Image Preview for Neovim

Neovim plugin for image previews.

At moment depends on [WezTerm](https://wezfurlong.org/wezterm/) image terminal support.

![image](https://user-images.githubusercontent.com/430272/194723584-3af9e272-b6b9-456a-af88-e1f79e5213e5.png)

## Installing

### Plug

```
Plug 'https://github.com/adelarsq/image_preview.nvim'
```

### Lazy

```lua
{
'https://github.com/adelarsq/image_preview.nvim',
event = 'VeryLazy',
config = function()
require("image_preview").setup()
end
},
```

## Configuration

Vim Script:

```vim
lua <p"] = "image_wezterm", -- " or another map
},
},
commands = {
image_wezterm = function(state)
local node = state.tree:get_node()
if node.type == "file" then
require("image_preview").PreviewImage(node.path)
end
end,
},
},
}
```

Special thanks for @pysan3 for [point that](https://github.com/adelarsq/image_preview.nvim/issues/3#issuecomment-1560816413).

## Keybinds

- `p` - image preview for file under cursor

## Features

- [x] Terminals:
- [x] [WezTerm](https://wezfurlong.org/wezterm/)
- [ ] iTerm2
- [ ] [Alacrity](https://github.com/alacritty/alacritty). Waiting for [pull/4763](https://github.com/alacritty/alacritty/pull/4763)
- [x] Environments:
- [x] Windows
- [x] PowerShell - WezTerm
- [ ] DOS
- [ ] WSL
- [x] Linux - WezTerm
- [x] macOS - WezTerm
- [x] Plugins:
- [x] [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
- [x] [neo-tree.nvim)](https://github.com/nvim-neo-tree/neo-tree.nvim)
- [x] [oil.nvim](https://github.com/stevearc/oil.nvim)
- [ ] NerdTree
- [x] Windows support. Depends on PowerShell
- [x] macOS support
- [x] Linux support
- [x] bmp, png and jpg
- [ ] svg

## Related Plugins

- [samodostal/image.nvim](https://github.com/samodostal/image.nvim)
- [nvim-telescope/telescope-media-files.nvim](https://github.com/nvim-telescope/telescope-media-files.nvim)