-- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` local nvimtree = require("nvim-tree") nvimtree.setup { on_attach = function(bufnr) local api = require("nvim-tree.api") local function opts(desc) return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true } end api.config.mappings.default_on_attach(bufnr) vim.keymap.set("n", "", api.node.open.edit, opts("Open")) end, renderer = { icons = { webdev_colors = true, git_placement = "before", padding = " ", symlink_arrow = " ➛ ", show = { file = true, folder = true, folder_arrow = true, git = true, }, glyphs = { default = "", symlink = "", git = { unstaged = "", staged = "S", unmerged = "", renamed = "➜", deleted = "", untracked = "U", ignored = "◌", }, folder = { default = "", open = "", empty = "", empty_open = "", symlink = "", }, }, }, highlight_git = true, root_folder_modifier = ":t", }, hijack_directories = { enable = true, auto_open = true, }, disable_netrw = true, hijack_netrw = true, hijack_cursor = false, update_cwd = true, diagnostics = { enable = true, icons = { hint = "", info = "", warning = "", error = "", }, }, update_focused_file = { enable = true, update_cwd = true, ignore_list = {}, }, system_open = { cmd = nil, args = {}, }, filters = { dotfiles = false, custom = {}, }, git = { enable = true, ignore = true, timeout = 500, }, view = { width = 30, side = "left", float = { quit_on_focus_loss = true, }, }, trash = { cmd = "trash", require_confirm = true, }, actions = { open_file = { resize_window = true, quit_on_open = false, window_picker = { enable = false, }, }, }, }