From 9d9b5f0b93123ae982e07bcaeca29b76268e004a Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Fri, 27 Dec 2024 19:44:05 -0800 Subject: [PATCH] Configure neotree --- lua/plugins/neotree.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/plugins/neotree.lua diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua new file mode 100644 index 0000000..5d92ffd --- /dev/null +++ b/lua/plugins/neotree.lua @@ -0,0 +1,16 @@ +return { + { + "nvim-neo-tree/neo-tree.nvim", + opts = { + event_handlers = { + { + event = require("neo-tree.events").FILE_OPEN_REQUESTED, + handler = function() + -- auto close when opening a file + require("neo-tree.command").execute({ action = "close" }) + end, + }, + }, + }, + }, +}