2024-07-30 10:06:43 -07:00
|
|
|
return {
|
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
event = { "VeryLazy" },
|
|
|
|
branch = "v3.x",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"MunifTanjim/nui.nvim",
|
|
|
|
},
|
|
|
|
config = function()
|
2024-09-08 15:31:24 -07:00
|
|
|
require('neo-tree').setup({
|
|
|
|
renderers = {
|
|
|
|
directory = {
|
|
|
|
{ "indent" },
|
|
|
|
{ "current_filter" },
|
|
|
|
{
|
|
|
|
"container",
|
|
|
|
content = {
|
|
|
|
{ "name", zindex = 10 },
|
|
|
|
{ "clipboard", zindex = 10 },
|
2024-09-09 23:06:56 -07:00
|
|
|
{
|
|
|
|
"git_status",
|
|
|
|
zindex = 20,
|
|
|
|
align = "right",
|
|
|
|
hide_when_expanded = true,
|
|
|
|
symbols = {
|
|
|
|
added = 'A',
|
|
|
|
modified = 'M',
|
|
|
|
removed = 'R',
|
|
|
|
ignored = 'I',
|
|
|
|
untracked = 'U',
|
|
|
|
staged = 'S',
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
2024-09-08 15:31:24 -07:00
|
|
|
{ "diagnostics", errors_only = true, zindex = 20, align = "right", hide_when_expanded = true },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
file = {
|
|
|
|
{ "indent" },
|
|
|
|
{
|
|
|
|
"container",
|
|
|
|
content = {
|
|
|
|
{ "name", zindex = 10 },
|
|
|
|
{ "clipboard", zindex = 10 },
|
|
|
|
{ "bufnr", zindex = 10 },
|
2024-11-19 01:43:37 -08:00
|
|
|
{ "modified", zindex = 20, align = "right", symbol = 'M' },
|
2024-09-09 23:06:56 -07:00
|
|
|
{
|
|
|
|
"git_status",
|
|
|
|
zindex = 20,
|
|
|
|
align = "right",
|
|
|
|
symbols = {
|
|
|
|
added = 'A',
|
|
|
|
modified = 'M',
|
|
|
|
removed = 'R',
|
|
|
|
ignored = 'I',
|
|
|
|
untracked = 'U',
|
|
|
|
staged = 'S',
|
|
|
|
}
|
|
|
|
},
|
2024-09-08 15:31:24 -07:00
|
|
|
{ "diagnostics", zindex = 20, align = "right" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
2024-07-30 10:06:43 -07:00
|
|
|
vim.api.nvim_set_keymap('n', '<leader><tab>', ':UndotreeHide<CR>:Neotree toggle<CR>', {})
|
|
|
|
end
|
|
|
|
}
|