nvf
nvf copied to clipboard
fzf-lua throws exception on `md` and `tsx` files
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
Installation Method
Standalone (flake outputs, nix profile install, etc.)
Installation Method (Other)
No response
nvf Version
master
Reproduction steps
- Clone https://github.com/KennethHoff/nvf-config -b fzf-lua-error-repro
- Run the cloned repository in the cloned directory
nix run . -- .
- Call
:FzfLua files(space-f-f) - 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
can't reproduce, might have been fixed during the last plugin version bump. Please give a minimal reproducible config if it still happens