Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sankantsu/gin-diff-image.nvim
Show image diffs within Neovim buffer!
https://github.com/sankantsu/gin-diff-image.nvim
neovim neovim-plugin
Last synced: 17 days ago
JSON representation
Show image diffs within Neovim buffer!
- Host: GitHub
- URL: https://github.com/sankantsu/gin-diff-image.nvim
- Owner: sankantsu
- License: mit
- Created: 2024-10-28T13:13:41.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2024-10-31T03:25:54.000Z (19 days ago)
- Last Synced: 2024-10-31T04:20:55.295Z (19 days ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 1000 Bytes
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gin-diff-image.nvim
Show image diffs within Neovim buffer!
This plugin provides `:GinDiff` ([vim-gin](https://github.com/lambdalisue/vim-gin)) integration for [image.nvim](https://github.com/3rd/image.nvim).
![](./assets/gin-diff-image-screenshot.png)
## Dependencies
- [git-diff-image (fork)](https://github.com/sankantsu/git-diff-image)
- [vim-gin](https://github.com/lambdalisue/vim-gin)
- [image.nvim](https://github.com/3rd/image.nvim)## Setup example
Neovim configuration example (`lazy.nvim`).
```lua
-- add luarocks path
-- image.nvim requires `magick` luarock
-- run `luarocks --local --lua-version=5.1 install magick`
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua"
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua"require("lazy").setup({
-- dependencies
"vim-denops/denops.vim",
"lambdalisue/vim-gin",
"3rd/image.nvim",
-- this plugin
"sankantsu/gin-diff-image.nvim",
})require("image").setup({
integrations = {
gindiff = {
enabled = true, -- enable gin-diff image integration
},
},
})
```NOTE: You also need some gitconfig changes for [git-diff-image (fork)](https://github.com/sankantsu/git-diff-image) (see git-diff-image README).