54 lines
2.4 KiB
Lua
54 lines
2.4 KiB
Lua
|
return {
|
||
|
{
|
||
|
"nvim-neo-tree/neo-tree.nvim",
|
||
|
branch = "v3.x",
|
||
|
dependencies = {
|
||
|
"nvim-lua/plenary.nvim",
|
||
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||
|
"MunifTanjim/nui.nvim",
|
||
|
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
||
|
},
|
||
|
opts = {
|
||
|
popup_border_style = "rounded",
|
||
|
enable_git_status = true,
|
||
|
enable_diagnostics = true,
|
||
|
open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes
|
||
|
default_component_configs = {
|
||
|
indent = {
|
||
|
indent_size = 2,
|
||
|
padding = 1, -- extra padding on left hand side
|
||
|
-- indent guides
|
||
|
with_markers = true,
|
||
|
indent_marker = "│",
|
||
|
last_indent_marker = "└",
|
||
|
highlight = "NeoTreeIndentMarker",
|
||
|
-- expander config, needed for nesting files
|
||
|
with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
|
||
|
expander_collapsed = "",
|
||
|
expander_expanded = "",
|
||
|
expander_highlight = "NeoTreeExpander",
|
||
|
},
|
||
|
git_status = {
|
||
|
symbols = {
|
||
|
-- Change type
|
||
|
added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
|
||
|
modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
|
||
|
deleted = "", -- this can only be used in the git_status source
|
||
|
renamed = "", -- this can only be used in the git_status source
|
||
|
-- Status type
|
||
|
untracked = "",
|
||
|
ignored = "",
|
||
|
unstaged = " ",
|
||
|
staged = " ",
|
||
|
conflict = " ",
|
||
|
}
|
||
|
},
|
||
|
modified = {
|
||
|
symbol = "+",
|
||
|
highlight = "NeoTreeModified",
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|