new steps

This commit is contained in:
2026-02-13 02:05:33 +02:00
parent 6b4008ca38
commit 6cc023ec35
11 changed files with 167 additions and 609 deletions

View File

@@ -46,6 +46,20 @@ local function my_on_attach(bufnr)
vim.keymap.set('n', 'U', api.tree.reload, opts)
end
local ignored_watcher_dirs = {
['.git'] = true,
['.DS_Store'] = true,
build = true,
dist = true,
public = true,
node_modules = true,
target = true,
}
local function ignore_watcher_dir(path)
return ignored_watcher_dirs[vim.fs.basename(path)] or false
end
require('nvim-tree').setup({
on_attach = my_on_attach,
view = { signcolumn = 'no' },
@@ -55,6 +69,7 @@ require('nvim-tree').setup({
special_files = {},
highlight_hidden = 'all',
highlight_modified = 'name',
highlight_clipboard = 'all',
indent_markers = {
@@ -70,7 +85,7 @@ require('nvim-tree').setup({
folder = false,
folder_arrow = false,
git = true,
modified = false,
modified = true,
hidden = false,
diagnostics = false,
bookmarks = true,
@@ -91,6 +106,7 @@ require('nvim-tree').setup({
hijack_cursor = true,
prefer_startup_root = true,
reload_on_bufenter = true,
update_focused_file = {
enable = true,
update_root = { enable = true, ignore_list = {} },
@@ -110,14 +126,6 @@ require('nvim-tree').setup({
filesystem_watchers = {
enable = true,
debounce_delay = 50,
ignore_dirs = {
'/.git',
'/.DS_Store',
'/build',
'/dist',
'/public',
'/node_modules',
'/target',
},
ignore_dirs = ignore_watcher_dir,
},
})