Skip to content

Instantly share code, notes, and snippets.

@Vaisakhkm2625
Last active May 26, 2023 22:19
Show Gist options
  • Save Vaisakhkm2625/bf5b9e1fe5e079fd8943d22fc30972b0 to your computer and use it in GitHub Desktop.
Save Vaisakhkm2625/bf5b9e1fe5e079fd8943d22fc30972b0 to your computer and use it in GitHub Desktop.
How to set up hologram plugin in lazyvim

setting up hologram plugin in lazyvim (vhyrro's branch, not merged)

add hologram plugin

~/.config/nvim/lua/plugins/hologram.lua

return {
{
 "vhyrro/hologram.nvim",
 config = function()
   require("hologram").setup({
     auto_display = true,
   })
 end,
},
}

now you need to install ImageMagick ImageMagick,ImageMagick-devel

(needed to install both, you will get error saying failed to load magickwand if you forget ImageMagick-devel )

you might need to setup luarocks too ~/.config/nvim/lua/plugins/luarocks.lua

return {
  {
    "theHamsta/nvim_rocks",
    event = "VeryLazy",
    build = "pip3 install --user hererocks && python3 -mhererocks . -j2.1.0-beta3 -r3.0.0 && cp nvim_rocks.lua lua",
    config = function()
      -- Add here the packages you want to make sure that they are installed

      local nvim_rocks = require("nvim_rocks")  -- and these 2 lines for image magick support
      nvim_rocks.ensure_installed({ "magick" })
    end,
  },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment