Skip to content

sankantsu/gin-diff-image.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gin-diff-image.nvim

Show image diffs within Neovim buffer!

This plugin provides :GinDiff (vim-gin) integration for image.nvim.

Dependencies

Setup example

Neovim configuration example (lazy.nvim).

-- 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) (see git-diff-image README).

About

Show image diffs within Neovim buffer!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages