Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hologram not working through ssh #46

Open
ASKabalan opened this issue Aug 16, 2024 · 0 comments
Open

Hologram not working through ssh #46

ASKabalan opened this issue Aug 16, 2024 · 0 comments

Comments

@ASKabalan
Copy link

Hello,

Thank you very much for this awesom plugin 😃

It works perfectly locally and I mapped it into commands like so

-- Function to delete the image immediately
local holo_image = nil

local function Holo_del()
  if holo_image then
    holo_image:delete(0, { free = true })
    holo_image = nil
  end
end

-- Function to display the image from the current buffer's file path
local function Holo_disp()
  local image_path = vim.fn.expand "%"

  if image_path and vim.fn.match(image_path, "\\v\\.png$") ~= -1 then
    -- Get the current buffer
    Holo_del()
    local buf = vim.api.nvim_get_current_buf()

    -- Load the hologram image
    holo_image = require("hologram.image"):new(image_path, {})

    -- Display the image at the center of the buffer
    holo_image:display(1, 0, buf, {})
  else
    print "No valid PNG file detected"
  end
end

However it does not work through ssh (even through kitten ssh)

kitten icat works on my distant server, but not hologram.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant