-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I am using neovim via MSYS2/UCRT64, which directly closes the preview image, but I got it fixed by checking if MSYSTEM
is set:
if (vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1) and not os.getenv 'MSYSTEM' then
in
image_preview.nvim/lua/image_preview/init.lua
Lines 44 to 50 in 3f3f462
if vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1 then | |
command = "silent !wezterm cli split-pane -- powershell wezterm imgcat " | |
.. "'" .. absolutePath .. "'" | |
.. " ; pause" | |
else | |
command = "silent !wezterm cli split-pane -- bash -c 'wezterm imgcat \"" .. absolutePath .. "\" ; read'" | |
end |
However I am not a hundered percent certain if that fixes the issue for everyones environment, so maybe a user option should be added?
Metadata
Metadata
Assignees
Labels
No labels