Repository navigation
install: auto-install yazi for tfm.nvim file manager - #16
Merged
Merged
Conversation
tfm.nvim is configured with file_manager = "yazi", so <Leader>t fails without the yazi binary. Add an install_yazi step that fetches prebuilt musl binaries via cargo-binstall (glibc-safe on older distros), and list yazi in the README prerequisites. Assisted-by: Claude Code (glm-5.2) <claude@anthropic.com> Signed-off-by: Junbo Zheng <3273070@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tfm.nvimexposes yazi as a terminal file manager (bound to<Leader>t),but
install.shnever installed yazi, so the feature silently failed on afresh bootstrap. Add an
install_yazistep that:yaziis already on PATH.cargois absent, with a hint to install Rust.cargo-binstallfor prebuilt binaries, thenyazi-fm/yazi-cli.prebuilt GNU build needs GLIBC_2.39 (absent on Ubuntu 22.04).
README's prerequisites table and the bootstrap blurb are updated to list
yazi.
Impact
./install.sh installnow provides yazi so<Leader>tworks out of the box. Existing users with yazi already onPATH are unaffected (skip path).
via
cargo-binstall; non-fatal on any failure.Testing
Ran
./install.sh installon Ubuntu 22.04 (x86_64, glibc 2.35):cargo-binstallinstalled,yazi-fm/yazi-clifetched the musl build,yazi --versionresolves on PATH, and<Leader>topens yazi inside nvim.Re-running skipped yazi (
yazi already in PATH). macOS path not exercisedin this session (default target path, untested).
Signed-off-by: Junbo Zheng <3273070@qq.com>