Skip to content
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
}
image

alt text

Source: nvim-tree.lua

alex-courtis tree

akin909

alt text

alt text

alt text

nvim-tree on floating mode

alt text

Always WIP

screenshot_2022-12-03_14-43-36_528599156

See also a video demo image

Float and simply ui with gruvbox theme preview

A simple floating window on the right. Source: nvimtree.lua

Screenshot 2025-03-02 at 00 24 32

Clone this wiki locally