-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneo-tree.lua
More file actions
38 lines (37 loc) · 879 Bytes
/
neo-tree.lua
File metadata and controls
38 lines (37 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
},
lazy = false,
opts = {
close_if_last_window = true,
popup_border_style = "rounded",
filesystem = {
hijack_netrw_behavior = "disabled",
follow_current_file = {
enabled = true,
},
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
},
},
window = {
position = "left",
width = 32,
mappings = {
["<space>"] = "none",
},
},
},
config = function(_, opts)
require("neo-tree").setup(opts)
vim.keymap.set("n", "<leader>n", "<Cmd>Neotree toggle reveal_force_cwd<CR>",
{ silent = true, noremap = true, desc = "Toggle [N]eo-tree" })
end,
}