Neovim/lua/plugins/neo-tree.lua

57 lines
2.4 KiB
Lua
Raw Normal View History

2023-11-22 17:58:50 +00:00
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
2023-11-27 22:37:34 +00:00
added = "+", -- or "✚", but this is redundant info if you use git_status_colors on the name
modified = "M", -- or "", but this is redundant info if you use git_status_colors on the name
deleted = "D", -- this can only be used in the git_status source
2023-11-22 17:58:50 +00:00
renamed = "󰁕", -- this can only be used in the git_status source
-- Status type
untracked = "",
ignored = "",
2023-11-27 22:37:34 +00:00
unstaged = "U",
staged = "S",
2023-11-22 17:58:50 +00:00
conflict = "",
}
},
modified = {
symbol = "+",
highlight = "NeoTreeModified",
},
2023-11-27 22:37:34 +00:00
},
filesystem = {
use_libuv_file_watcher = true
2023-11-22 17:58:50 +00:00
}
}
}
}