From decc55fb67b2ddc86d2682153487e4c84801c581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 12 Apr 2024 21:28:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20deps(nvim):=20add=20lua?= =?UTF-8?q?rocks.nvim=20to=20the=20image.nvim=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/ui/image.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/ui/image.lua b/.config/nvim/lua/plugins/extras/ui/image.lua index 7248dcb8..2e03f14b 100644 --- a/.config/nvim/lua/plugins/extras/ui/image.lua +++ b/.config/nvim/lua/plugins/extras/ui/image.lua @@ -1,11 +1,16 @@ return { "3rd/image.nvim", event = "LazyFile", - init = function() - 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;" - end, - dependencies = { "nvim-treesitter/nvim-treesitter" }, + dependencies = { + { "nvim-treesitter/nvim-treesitter" }, + { + "vhyrro/luarocks.nvim", + priority = 1000, -- this plugin needs to run before anything else + opts = { + rocks = { "magick" }, + }, + }, + }, opts = { backend = "kitty", integrations = {