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 🖼
- Host: GitHub
- URL: https://github.com/adelarsq/image_preview.nvim
- Owner: adelarsq
- License: mit
- Created: 2022-10-08T16:03:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-07T13:37:35.000Z (4 months ago)
- Last Synced: 2024-02-07T14:41:45.744Z (4 months ago)
- Topics: image-preview, neovim, plugin, terminal, wezterm
- Language: Lua
- Homepage:
- Size: 39.1 KB
- Stars: 89
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-neovim - adelarsq/image_preview.nvim - Image preview based on terminal's Image Protocol support. (Media / Cursorline)
- awesome-stars - adelarsq/image_preview.nvim - Image Preview for Neovim 🖼 (Lua)
- awesome-neovim - adelarsq/image_preview.nvim - Image preview based on terminal's Image Protocol support. (Media / Cursorline)
- awesome-neovim - adelarsq/image_preview.nvim - Image preview based on terminal's Image Protocol support. (Media / Cursorline)
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)