forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneo-tree.lua
More file actions
32 lines (31 loc) · 909 Bytes
/
neo-tree.lua
File metadata and controls
32 lines (31 loc) · 909 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
return {
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
config = function()
require('neo-tree').setup {
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
},
follow_current_file = { enabled = true }, -- Highlight current file
use_libuv_file_watcher = true, -- Auto-update tree when files change
},
window = {
mappings = {
['l'] = 'open', -- Set 'l' to open files
['h'] = 'close_node', -- Collapse folders with 'h'
['<CR>'] = 'open',
},
},
}
-- Set keymap to open Neo-tree with <Leader> + e
vim.keymap.set('n', '<leader>e', ':Neotree toggle<CR>', { noremap = true, silent = true })
end,
}