Skip to content

0ax1/tree.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

tree.nvim

Minimal file explorer for Neovim. ~800 lines of Lua.

Install

-- lazy.nvim
{ "0ax1/tree.nvim" }

Setup

require("tree").setup({
  width = 30,                -- sidebar width (default 30)
  arrows = { open = "", closed = "" },  -- directory indicators
})

vim.keymap.set("n", "<c-n>", "<cmd>Tree<cr>")

Keymaps

Key Action
<CR> o l Open file / toggle directory
h Close directory or go to parent
s Open in horizontal split
v Open in vertical split
a Create file or directory (end name with /)
d Delete (with confirmation)
r Rename
y x p Copy / cut / paste
R Refresh
<C-]> cd into directory
- cd up to parent
q Close tree

Features

  • Filesystem watching via libuv (debounced, per expanded directory)
  • Auto-reveal: tree follows the current buffer
  • Configurable directory arrows

Highlights

All highlight groups can be overridden:

Group Default link Used for
TreeNormal Comment All tree text

About

Minimal Neovim file explorer in ~800 lines of Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages