Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

hachy/nvf.nvim

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

nvf.nvim

Minimal file explorer for Neovim.

nvf

Installation

Using vim-plug

Plug 'hachy/nvf.nvim'

Setup

Add this to your init.lua

require("nvf").setup({})

or init.vim

lua require("nvf").setup({})

Usage

  • :Nvf Open the default explorer. If there is another explorer in the window, open it first.

  • :NvfNew Open another explorer that is not synchronized with the default.

This is the recommended keymap.

vim.keymap.set("n", "<Space>f", "<Cmd>Nvf<CR>")

Default mappings

  • q : Quit the buffer
  • l : Open a file or directory under the cursor
  • h : Move to the parent directory
  • t : Expand or collapse tree
  • ^ : Move to current working directory
  • ~ : Move to home directory
  • . : Toggle visibility of hidden files
  • N : Add a file
  • K : Add a directory
  • R : Rename
  • D : Delete
  • c : Copy
  • p : Paste
  • <Tab> : Open a brand new buffer

Custom configuration

require("nvf").setup {
  show_hidden_files = false,
  mappings = {
    quit = "q",
    open = "l",
    up = "h",
    expand_or_collapse = "t",
    cwd = "^",
    home = "~",
    toggle_hidden_files = ".",
    create_file = "N",
    create_directory = "K",
    rename = "R",
    delete = "D",
    copy = "c",
    paste = "p",
    brand_new_buffer = "<Tab>",
  },
}

Special Thanks

Ideas inspired from defx.nvim

About

๐Ÿ“ Minimal file explorer for Neovim written in Lua

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.