Skip to content

Commit 5522630

Browse files
committed
update image.nvim
1 parent e343ccf commit 5522630

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

lua/plugins/ui.lua

+10-12
Original file line numberDiff line numberDiff line change
@@ -349,20 +349,18 @@ return {
349349
{ -- show images in nvim!
350350
'3rd/image.nvim',
351351
enabled = true,
352+
dev = false,
352353
-- fix to commit to keep using the rockspeck for image magick
353354
-- TODO: check back on this later
354-
commit = 'deb158d',
355-
dev = false,
355+
-- commit = 'deb158d',
356356
ft = { 'markdown', 'quarto', 'vimwiki' },
357-
-- dependencies = {
358-
-- {
359-
-- 'vhyrro/luarocks.nvim',
360-
-- priority = 1001, -- this plugin needs to run before anything else
361-
-- opts = {
362-
-- rocks = { 'magick' },
363-
-- },
364-
-- },
365-
-- },
357+
cond = function()
358+
-- Disable on Windows system
359+
return vim.fn.has 'win32' ~= 1
360+
end,
361+
dependencies = {
362+
'leafo/magick', -- that's a lua rock
363+
},
366364
config = function()
367365
-- Requirements
368366
-- https://github.com/3rd/image.nvim?tab=readme-ov-file#requirements
@@ -372,7 +370,7 @@ return {
372370
-- sudo apt install libmagickwand-dev
373371
-- sudo apt install liblua5.1-0-dev
374372
-- sudo apt install lua5.1
375-
-- sudo apt installl luajit
373+
-- sudo apt install luajit
376374

377375
local image = require 'image'
378376
image.setup {

0 commit comments

Comments
 (0)