nvf icon indicating copy to clipboard operation
nvf copied to clipboard

fzf-lua throws exception on `md` and `tsx` files

Open KennethHoff opened this issue 4 months ago • 1 comments

I have confirmed that this is a bug related to nvf

  • [x] This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • [x] I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

Image

Installation Method

Standalone (flake outputs, nix profile install, etc.)

Installation Method (Other)

No response

nvf Version

master

Reproduction steps

  1. Clone https://github.com/KennethHoff/nvf-config -b fzf-lua-error-repro
  2. Run the cloned repository in the cloned directory
    • nix run . -- .
  3. Call :FzfLua files (space-f-f)
  4. Navigate using the arrows kes to hover over the various files.

Expected behavior

All file type should function.

Actual Behavior

.tsx and .md files errors out.

Error executing vim.schedule lua callback: ...r/pack/mnw/opt/fzf-lua/lua/fzf-lua/previewer/builtin.lua:1046: attempt to index field 'inline' (a nil value)
stack traceback:
        ...r/pack/mnw/opt/fzf-lua/lua/fzf-lua/previewer/builtin.lua:1046: in function 'attach_snacks_image_inline'
        ...r/pack/mnw/opt/fzf-lua/lua/fzf-lua/previewer/builtin.lua:1277: in function 'syntax'
        ...r/pack/mnw/opt/fzf-lua/lua/fzf-lua/previewer/builtin.lua:1292: in function 'preview_buf_post'
        ...r/pack/mnw/opt/fzf-lua/lua/fzf-lua/previewer/builtin.lua:930: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

System Information

- system: `"x86_64-linux"`
 - host os: `Linux 6.16.0, NixOS, 25.11 (Xantusia), 25.11.20250804.cab7782`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.30.2`
 - nixpkgs: `/nix/store/cxm2pydim6pkc7nh5qkbl7q21ipp5bmz-source`

This also happens on my nix-darwin system

Relevant log output

https://termbin.com/a7xt

KennethHoff avatar Aug 06 '25 20:08 KennethHoff

can't reproduce, might have been fixed during the last plugin version bump. Please give a minimal reproducible config if it still happens

horriblename avatar Sep 22 '25 21:09 horriblename