Skip to content
/ nvf.nvim Public

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

License

Notifications You must be signed in to change notification settings

hachy/nvf.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

68 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages