46 lines
778 B
Lua
Raw Normal View History

2023-08-19 17:22:56 +00:00
return {
"nvim-tree/nvim-tree.lua",
event = "VeryLazy",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
2023-08-22 14:51:35 +00:00
keys = {
{ "<leader>e", function() require("nvim-tree.api").tree.toggle() end, desc = "Toggle files" },
},
2023-08-21 17:19:37 +00:00
opts = {
filesystem_watchers = {
enable = true,
},
filters = {
dotfiles = false,
},
renderer = {
2023-08-29 11:29:37 +00:00
root_folder_label = false,
highlight_git = true,
icons = {
show = {
git = false,
},
glyphs = {
git = {
unstaged = "",
untracked = "",
deleted = "",
},
},
},
2023-08-21 17:19:37 +00:00
},
sync_root_with_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
width = 35,
},
},
config = function(_, opts)
require("nvim-tree").setup(opts)
2023-08-19 17:22:56 +00:00
end,
}