Repository navigation
Showcases
Lutalli edited this page Oct 14, 2026
·
21 revisions
Examples of user's setups.
Please add your own, along with a link to the source containing your require("nvim-tree").setup
Configuration
local function open_win_config_func()
local scr_w = vim.opt.columns:get()
local scr_h = vim.opt.lines:get()
local tree_w = 80
local tree_h = math.floor(tree_w * scr_h / scr_w)
return {
border = "double",
relative = "editor",
width = tree_w,
height = tree_h,
col = (scr_w - tree_w) / 2,
row = (scr_h - tree_h) / 2
}
end
require("nvim-tree").setup {
view = {
signcolumn = "yes",
float = {
enable = true,
open_win_config = open_win_config_func
},
cursorline = false
},
modified = {
enable = true
},
renderer = {
indent_width = 3,
icons = {
show = {
hidden = true
},
git_placement = "after",
bookmarks_placement = "after",
symlink_arrow = " -> ",
glyphs = {
folder = {
arrow_closed = " ",
arrow_open = " ",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = ""
},
default = "",
symlink = "",
bookmark = "",
modified = "",
hidden = "",
git = {
unstaged = "×",
staged = "",
unmerged = "",
untracked = "",
renamed = "",
deleted = "",
ignored = "∅"
}
}
}
},
filters = {
git_ignored = false
},
hijack_cursor = true,
sync_root_with_cwd = true
}

Source: nvim-tree.lua



nvim-tree on floating mode

Always WIP

See also a video demo
Float and simply ui with gruvbox theme
A simple floating window on the right. Source: nvimtree.lua

