From 3b4e1963ed9ba7ccd71e699821023af675543b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 28 Dec 2023 13:28:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(nvim):=20image.nvim=20now=20?= =?UTF-8?q?installs=20the=20luarock=20dependency=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/ui/image.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/ui/image.lua b/.config/nvim/lua/plugins/extras/ui/image.lua index 290e70cd..b3960dfd 100644 --- a/.config/nvim/lua/plugins/extras/ui/image.lua +++ b/.config/nvim/lua/plugins/extras/ui/image.lua @@ -1,6 +1,3 @@ -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;" - return { { "edluffy/hologram.nvim", -- TODO: Need to investigate this @@ -12,6 +9,10 @@ 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" }, opts = { backend = "kitty",