fix: nvim tree git ignore hide file

This commit is contained in:
Pojok Code 2024-10-12 16:42:46 +07:00
parent ad9f646417
commit e2afd37cae
4 changed files with 148 additions and 57 deletions

View file

@ -220,7 +220,7 @@ return {
end,
}
]]
return {
"nvim-tree/nvim-tree.lua",
cmd = { "NvimTreeFindFileToggle", "NvimTree", "NvimTreeOpen", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
@ -230,7 +230,6 @@ return {
opts = function()
local icons = pcode.icons
return {
filters = { dotfiles = false },
disable_netrw = true,
hijack_cursor = true,
sync_root_with_cwd = true,
@ -304,6 +303,18 @@ return {
".prettierignore",
},
},
notify = {
threshold = vim.log.levels.INFO,
-- threshold = vim.log.levels.ERROR,
},
git = {
enable = true,
ignore = false,
show_on_dirs = true,
show_on_open_dirs = true,
disable_for_dirs = {},
timeout = 400,
},
}
end,
config = function(_, opts)
@ -313,4 +324,4 @@ return {
vim.cmd("edit " .. file.fname)
end)
end,
}
}