fix: nvim tree filter .gitignore

This commit is contained in:
Young Xu 2023-04-02 23:42:02 +08:00 committed by xuthus5
parent 1e0f65a4cd
commit f974871845
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
1 changed files with 61 additions and 1 deletions

View File

@ -15,11 +15,26 @@ require("nvim-tree").setup({
enable = true,
update_root = true,
},
filters = { custom = { ".git" } },
filters = {
custom = { "^.git$" },
dotfiles = false,
},
filesystem_watchers = {
enable = true,
debounce_delay = 10,
},
git = {
enable = true,
ignore = true,
show_on_dirs = true,
show_on_open_dirs = true,
timeout = 400,
},
modified = {
enable = false,
show_on_dirs = true,
show_on_open_dirs = true,
},
view = {
width = 30,
mappings = {
@ -29,7 +44,52 @@ require("nvim-tree").setup({
},
},
renderer = {
full_name = true,
group_empty = true,
indent_markers = {
enable = true,
},
icons = {
git_placement = "signcolumn",
show = {
file = true,
folder = false,
folder_arrow = false,
git = true,
},
},
},
diagnostics = {
enable = true,
show_on_dirs = true,
},
actions = {
change_dir = {
enable = false,
restrict_above_cwd = true,
},
open_file = {
resize_window = true,
window_picker = {
chars = "aoeui",
},
},
remove_file = {
close_window = false,
},
},
log = {
enable = false,
truncate = true,
types = {
all = false,
config = false,
copy_paste = false,
diagnostics = false,
git = false,
profile = false,
watcher = false,
},
},
})