From 482f46a442738bd272fd63965b90db88dcabeb3b Mon Sep 17 00:00:00 2001 From: zapagenrevdale Date: Tue, 5 Aug 2025 17:51:35 +0800 Subject: [PATCH] chore: neotree plugin --- init.lua | 2 +- lua/custom/plugins/neotree.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/neotree.lua diff --git a/init.lua b/init.lua index b98ffc61..ed464d6e 100644 --- a/init.lua +++ b/init.lua @@ -984,7 +984,7 @@ require('lazy').setup({ -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/neotree.lua b/lua/custom/plugins/neotree.lua new file mode 100644 index 00000000..bbb35a60 --- /dev/null +++ b/lua/custom/plugins/neotree.lua @@ -0,0 +1,16 @@ +return { + { + 'nvim-neo-tree/neo-tree.nvim', + branch = 'v3.x', + dependencies = { + 'nvim-lua/plenary.nvim', + 'MunifTanjim/nui.nvim', + 'nvim-tree/nvim-web-devicons', -- optional, but recommended + }, + lazy = false, -- neo-tree will lazily load itself + keys = { + { 'e', ':Neotree toggle', desc = 'Toggle NeoTree', silent = true }, + { '\\', ':Neotree reveal', desc = 'NeoTree reveal', silent = true }, + }, + }, +}