Skip to content

Commit

Permalink
feat: use rockspec for magick
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Oct 9, 2024
1 parent 6454aea commit deb0bc5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,15 @@ return {
{ -- show images in nvim!
'3rd/image.nvim',
enabled = true,
-- fix to commit to keep using the rockspeck for image magick
-- TODO: check back on this later
commit = 'deb158d',
dev = false,
ft = { 'markdown', 'quarto', 'vimwiki' },
cond = function()
-- Disable on Windows system
return vim.fn.has 'win32' ~= 1
end,
dependencies = {
'leafo/magick', -- that's a lua rock
},
config = function()
-- Requirements
-- https://github.com/3rd/image.nvim?tab=readme-ov-file#requirements
Expand All @@ -363,7 +367,7 @@ return {
-- sudo apt install libmagickwand-dev
-- sudo apt install liblua5.1-0-dev
-- sudo apt install lua5.1
-- sudo apt installl luajit
-- sudo apt install luajit

local image = require 'image'
image.setup {
Expand All @@ -372,6 +376,7 @@ return {
markdown = {
enabled = true,
only_render_image_at_cursor = true,
-- only_render_image_at_cursor_mode = "popup",
filetypes = { 'markdown', 'vimwiki', 'quarto' },
},
},
Expand Down

0 comments on commit deb0bc5

Please sign in to comment.