refactor(nvim): remove image.nvim

This commit is contained in:
Price Hiller 2023-09-05 00:32:59 -05:00
parent 87bd57f500
commit 6d163b932d
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -1,23 +1,4 @@
return {
{
"3rd/image.nvim",
build = function()
---@param out SystemCompleted
vim.system({ "luarocks", "--lua-version", "5.1", "--local", "install", "magick" }, {}, function(out)
if out.code ~= 0 then
error("Failed to install `magick` luarock for image.nvim!", vim.log.levels.ERROR)
end
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({
window_overlap_clear_enabled = true,
})
end,
},
{
"nvim-neorg/neorg",
build = ":Neorg sync-parsers", -- This is the important bit!