2023-02-20 11:09:53 +00:00
|
|
|
return {
|
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
branch = "v2.x",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
|
|
|
"MunifTanjim/nui.nvim",
|
|
|
|
},
|
2023-04-24 11:41:54 +01:00
|
|
|
cmd = "NeoTree",
|
|
|
|
event = { "BufEnter" },
|
|
|
|
init = function()
|
2023-04-21 14:25:24 +01:00
|
|
|
vim.g.loaded_netrw = 1
|
|
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
vim.g.neo_tree_remove_legacy_commands = 1
|
2023-05-15 11:16:19 +01:00
|
|
|
vim.keymap.set("n", "<leader>nn", "<cmd>Neotree left reveal reveal_force_cwd<cr>")
|
2023-05-11 08:51:35 +01:00
|
|
|
vim.keymap.set("n", "<leader>nb", "<cmd>Neotree toggle show buffers right<cr>")
|
2023-02-20 11:09:53 +00:00
|
|
|
end,
|
2023-05-11 08:51:35 +01:00
|
|
|
config = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
opts = {
|
|
|
|
close_if_last_window = true,
|
|
|
|
use_popups_for_input = false,
|
|
|
|
filesystem = {
|
|
|
|
window = {
|
|
|
|
mappings = {
|
|
|
|
["Z"] = "expand_all_nodes",
|
|
|
|
["<tab>"] = "toggle_node",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filtered_items = {
|
|
|
|
hide_dotfiles = false,
|
|
|
|
},
|
|
|
|
group_empty_dirs = true,
|
|
|
|
hijack_netrw_behavior = "open_current",
|
|
|
|
},
|
|
|
|
buffers = {
|
|
|
|
bind_to_cwd = true,
|
|
|
|
follow_current_file = true,
|
|
|
|
group_empty_dirs = true,
|
|
|
|
},
|
|
|
|
git_status = {
|
|
|
|
group_empty_dirs = true,
|
|
|
|
},
|
|
|
|
source_selector = {
|
|
|
|
winbar = true,
|
|
|
|
statusline = false,
|
|
|
|
},
|
|
|
|
},
|
2023-02-20 11:09:53 +00:00
|
|
|
}
|