Skip to content

Image preview doesn't appear within Neovim #48

Description

@andyc1234

Hi, I am using Kitty terminal.

  • Outside Neovim (as in "from the terminal"), I have image preview with LF (see left side of the image)
  • But once inside Neovim, image preview doesn't appear (see right side of the image)

Screen Shot 2024-12-04 at 11 29 40 PM

Any idea on why it is not appearing? I am not sure if this is a Kitty, Neovim, LF, or Floaterm issue, but I figured I would ask here first. Thanks.

lf.vim: 80a2ef (latest commit)
vim-floaterm: 4e28c8 (latest commit)
Neovim: v0.10.2 (latest stable)
Kitty: 0.36.1
LF: r31
-- My lf.vim config
vim.g.lf_command_override = 'lf -config ~/.config/lf/lfrc'
vim.g.lf_map_keys = 0 -- Disable the default trigger <leader>f
vim.g.floaterm_width = 0.93
vim.g.floaterm_height = 0.95

vim.api.nvim_set_hl(0, 'Floaterm', {ctermbg = 'white'})
vim.api.nvim_set_hl(0, 'FloatermBorder', {ctermbg = 'white'})
# My LF config (just the relevant part)
# The 2 scripts are copy&paste from LF github wiki: https://github.com/gokcehan/lf/wiki/Previews#with-kitty-and-pistol
set previewer ~/.config/lf/previewer
set cleaner ~/.config/lf/cleaner

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions