From 3c6118032cb17949c2a1c35e2c22f0ac3272bc6f Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 26 Feb 2024 01:56:40 -0600 Subject: [PATCH] refactor(nvim): remove `image.nvim` --- .../nvim/lua/plugins/configs/image.lua | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 dots/.config/nvim/lua/plugins/configs/image.lua diff --git a/dots/.config/nvim/lua/plugins/configs/image.lua b/dots/.config/nvim/lua/plugins/configs/image.lua deleted file mode 100644 index 27a50d45..00000000 --- a/dots/.config/nvim/lua/plugins/configs/image.lua +++ /dev/null @@ -1,28 +0,0 @@ -return { - { - "3rd/image.nvim", - build = function() - ---@type vim.SystemCompleted - local out = vim.system({ "luarocks", "--lua-version", "5.1", "--local", "install", "magick" }):wait() - if out.code ~= 0 then - -- Delete it to ensure this builder script is ran again on next update/sync/etc. - vim.fn.delete(vim.fn.stdpath("data") .. "/lazy/image.nvim", "rf") - error( - string.format( - "Failed to install `magick` luarock for image.nvim!\n---STDOUT---\n%s\n\n---STDERR---\n\n%s", - out.stdout, - out.stderr - ), - vim.log.levels.ERROR - ) - end - end, - ft = { "markdown", "norg" }, - config = 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;" - require("image").setup({}) - pcall(vim.cmd.edit) - end, - }, -}