-- The MIT License (MIT) -- -- Copyright © 2026 Scott E. Graves -- -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software -- and associated documentation files (the “Software”), to deal in the Software without restriction, -- including without limitation the rights to use, copy, modify, merge, publish, distribute, -- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all copies or -- substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- local keymaps = require("darcula.keymaps") local symbols = require("darcula.utils.symbols") vim.g.nvim_tree_refresh_wait = 250 require "nvim-tree".setup { diagnostics = { enable = false, icons = { error = symbols.status.errors, hint = symbols.status.hints, info = symbols.status.info, warning = symbols.status.warnings } }, filters = {dotfiles = not NV_DARCULA_ENABLE_HIDDEN_FILES}, git = {enable = true, ignore = false, timeout = 5000}, hijack_directories = {enable = false, auto_open = false}, on_attach = keymaps.nvim_tree_on_attach, renderer = { icons = { show = {file = true, folder = true, folder_arrow = false, git = true}, glyphs = { default = symbols.file, symlink = symbols.file, folder = { arrow_open = symbols.directory.expanded, arrow_closed = symbols.directory.collapsed, default = symbols.directory.directory, empty = symbols.directory.directory, empty_open = symbols.directory.directory_open, open = symbols.directory.directory_open, symlink = symbols.directory.directory, symlink_open = symbols.directory.directory_open }, git = { unstaged = symbols.git.unstaged, staged = symbols.git.staged, unmerged = symbols.git.unmerged, renamed = symbols.git.renamed, untracked = symbols.git.untracked, deleted = symbols.git.deleted, ignored = symbols.git.ignored } } }, special_files = {}, indent_markers = { enable = false, icons = {corner = "└ ", edge = "│ ", none = " "} } }, respect_buf_cwd = false, sync_root_with_cwd = true, update_cwd = false, update_focused_file = {enable = true, update_root = false}, view = {width = 35} }