Minimal file explorer for Neovim.
Using vim-plug
Plug 'hachy/nvf.nvim'Add this to your init.lua
require("nvf").setup({})or init.vim
lua require("nvf").setup({})-
:NvfOpen the default explorer. If there is another explorer in the window, open it first. -
:NvfNewOpen another explorer that is not synchronized with the default.
This is the recommended keymap.
vim.keymap.set("n", "<Space>f", "<Cmd>Nvf<CR>")q: Quit the bufferl: Open a file or directory under the cursorh: Move to the parent directoryt: Expand or collapse tree^: Move to current working directory~: Move to home directory.: Toggle visibility of hidden filesN: Add a fileK: Add a directoryR: RenameD: Deletec: Copyp: Paste<Tab>: Open a brand new buffer
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>",
},
}Ideas inspired from defx.nvim
