back to home

mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager

1,593 stars
52 forks
6 issues
LuaTypeScriptJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing mikavilpas/yazi.nvim in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/mikavilpas/yazi.nvim)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

🎲 A Neovim Plugin for yazi Yazi is a blazing fast file manager for the terminal. This plugin allows you to open yazi in a floating window in Neovim. ✨ Features • Press to display all keymaps! • Open yazi in a floating window. All visible splits are opened as yazi tabs for easy and fast navigation. • Files that are hovered in yazi are highlighted in Neovim to intuitively show where you are in relation to your Neovim session. Currently this works for splits that you have open. • Files selected in yazi can be opened in various ways: as the current buffer, a vertical split, a horizontal split, a new tab, as quickfix items... • if you have selected a file path in visual mode, yazi will open that file instead of current file • Integrations to other plugins and tools, if they are installed: • For telescope.nvim, fzf-lua.nvim and snacks.picker: you can grep/search in the directory yazi is in. Select some files to limit the search to those files only. • Using a bundled version of snacks.bufdelete to have yazi close buffers and preserve the window layout. This happens when files that are open are deleted in yazi. • For grug-far.nvim: you can search and replace in the directory yazi is in • Copy the relative path from the start file to the currently hovered file. Requires realpath (1) on linux and windows, or grealpath on osx • If multiple files are selected, they can be sent to the quickfix list • (optionally) open yazi instead of netrw for directories • Files that are renamed, moved, or deleted in yazi are kept in sync with open buffers in Neovim • The files are also kept in sync with currently running LSP servers. A technical explanation is available in documentation/for-developers/lsp-renaming.md. • Customizable keybindings • Plugin management for Yazi plugins and flavors (documentation) • 🆕 Send custom commands to yazi (documentation) For previewing images with yazi, see Yazi's documentation related to Neovim. 📦 Installation First, make sure you have the requirements: • Neovim stable or nightly • a recent version of yazi • Opting into new features might require a recent version of yazi (see installing-yazi-from-source.md) • if on Windows, the minimum supported version is Windows 11 > [!TIP] > > You can run to see if compatible versions are installed > and working. ⚙️ Configuration Using lazy.nvim This is the preferred installation method. Notice that yazi.nvim adds and lazy loads some minimal dependencies for you automatically when using a plugin manager like lazy.nvim. To see which dependencies are installed, see lazy.lua. If you are not using lazy.nvim (or rocks.nvim), you need to install the dependencies yourself. Also see the discussion in issue 306 and examples of other Neovim plugins using this feature. Without a package manager Instructions If you are not using lazy.nvim, see lazy.lua for what dependencies are required. ⌨️ Keybindings These are the default keybindings that are available when yazi is open: • : show the help menu • : open the selected file(s) in vertical splits • : open the selected file(s) in horizontal splits • : open the selected file(s) in new tabs • : send the selected file(s) to the quickfix list • There are also integrations to other plugins, which you need to install separately: • : search in the current yazi directory using telescope's , if available. Optionally you can use fzf-lua.nvim, snacks.picker or provide your own implementation - see the instructions in the configuration section for more info. • if multiple files/directories are selected in yazi, the search and replace will only be done in the selected files/directories • : search and replace in the current yazi directory using grug-far, if available • if multiple files/directories are selected in yazi, the operation is limited to those only • : copy the relative path of the selected file(s) to the clipboard. Requires GNU or on OSX • also available for the snacks.nvim picker, see documentation/copy-relative-path-to-files.md for more information • : make yazi jump to the open buffers in Neovim. See #232 for more information ⚙️⚙️ Advanced configuration > [!IMPORTANT] > > You don't have to set any of these options. The defaults are fine for most > users. > > For advanced configuration, it's recommended to have your Lua language server > set up so that you can type check your configuration and avoid errors. > > For help on how to do this, there is a section for Neovim development tools in > the documentation. You can optionally configure yazi.nvim by setting any of the options below. > [!TIP] > > If you are adding custom bindings for special use cases, you can use the lua > api. It allows customizing the configuration on a per call basis. For example, > you can open yazi with a different configuration by calling > to override some of your > default settings for this specific call. 🪛 Customizing yazi Yazi is highly customizable. It features its own plugin and event system, themes, and keybindings. This section lists some of the plugins and themes that I like. • allows jumping to a line by typing a hint character, much like hop.nvim. • is a port of the starship prompt to yazi. It allows reusing the starship prompt you are using in your shell in yazi. • houses many of the most popular themes as yazi flavors, check it out! They typically also include matching code highlighting. Contributing Please see COMMUNITY.md for more information on the project! In case there are issues See reproducing-issues.md. Powershell users: see issue 675 for Powershell specific configuration.