A lightweight and fast fuzzy file finder for Neovim (v0.10+).
Based on find file from JimmyZJX/leaderkey and C-x C-f (find-file) from Emacs.
mkdir -p ~/.local/state/nvim/site/pack/plugins/opt/
git clone --depth=1 https://github.com/junegunn/fzf ~/.local/state/nvim/site/pack/plugins/opt/fzf
git clone --depth=1 https://github.com/junegunn/fzf.vim ~/.local/state/nvim/site/pack/plugins/opt/fzf.vim
git clone --depth=1 https://github.com/wdomitrz/findfile.nvim ~/.local/state/nvim/site/pack/plugins/opt/findfile.nvimand add
packadd fzf
packadd fzf.vim
packadd findfile.nvimto your ~/.config/nvim/init.vim.
Using vim-plug
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'wdomitrz/findfile.nvim':FindFile [query]- Open the finder in the current buffer's directory.:FindFileRoot [query]- Open the finder from the project's git root.
| Key | Action |
|---|---|
<CR> |
Open selected item |
<Tab> |
Complete directory or open item |
<Esc> |
Close finder |
<C-j> / <Down> |
Move selection down |
<C-k> / <Up> |
Move selection up |
<BS> |
Delete character or go to parent directory |
<Space> |
Handoff query to FZF |