Skip to content

Commit eee44cf

Browse files
committed
add neo-tree
1 parent 7700a8a commit eee44cf

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

init.lua

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,28 @@ require('lazy').setup({
239239
},
240240
},
241241

242-
-- NOTE: Plugins can specify dependencies.
243-
--
244-
-- The dependencies are proper plugin specifications as well - anything
245-
-- you do for a plugin at the top level, you can do for a dependency.
246-
--
247-
-- Use the `dependencies` key to specify the dependencies of a particular plugin
242+
{
243+
'nvim-neo-tree/neo-tree.nvim',
244+
version = '*',
245+
dependencies = {
246+
'nvim-lua/plenary.nvim',
247+
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
248+
'MunifTanjim/nui.nvim',
249+
},
250+
cmd = 'Neotree',
251+
keys = {
252+
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
253+
},
254+
opts = {
255+
filesystem = {
256+
window = {
257+
mappings = {
258+
['\\'] = 'close_window',
259+
},
260+
},
261+
},
262+
},
263+
},
248264

249265
{ -- Fuzzy Finder (files, lsp, etc)
250266
'nvim-telescope/telescope.nvim',

0 commit comments

Comments
 (0)