Closed lasnikr closed 1 month ago
I am using Sway on Arch Linux and compiled ueberzugpp from source.
ueberzugpp
This is my ueberzugpp config:
{ "layer": { "silent": false, "use-escape-codes": false, "no-stdin": false, "output": "wayland" } }
This to what I have changed the minimal example to:
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ { "3rd/image.nvim", event = "VeryLazy", dependencies = { { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", config = function() require("nvim-treesitter.configs").setup({ ensure_installed = { "markdown" }, highlight = { enable = true }, }) end, }, }, opts = { backend = "ueberzug", integrations = { markdown = { enabled = true, clear_in_insert_mode = false, download_remote_images = true, only_render_image_at_cursor = false, filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here }, neorg = { enabled = true, clear_in_insert_mode = false, download_remote_images = true, only_render_image_at_cursor = false, filetypes = { "norg" }, }, }, max_width = nil, max_height = nil, max_width_window_percentage = nil, max_height_window_percentage = 50, kitty_method = "normal", }, }, }) 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;" vim.opt.number = true vim.opt.conceallevel = 2 vim.opt.winbar = "image.nvim demo" vim.opt.signcolumn = "yes:2" local content = [[ # Hello World ![This is a remote image](https://gist.ro/s/remote.png) ]] vim.schedule(function() local buf = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_lines(buf, 0, -1, true, vim.split(content, "\n")) vim.api.nvim_buf_set_option(buf, "filetype", "markdown") vim.api.nvim_set_current_buf(buf) vim.cmd("split") end)
And this is what the minimal example looks like:
Am I missing something?
This was a problem with a faulty ueberzugpp build
I am using Sway on Arch Linux and compiled
ueberzugpp
from source.This is my
ueberzugpp
config:This to what I have changed the minimal example to:
And this is what the minimal example looks like:![image](https://github.com/3rd/image.nvim/assets/61758940/1b24504c-586a-4b09-b5f4-891d9fcfd47b)
Am I missing something?