diff --git a/.config/nvim/lua/user/neotree.lua b/.config/nvim/lua/user/neotree.lua index 0771971..29f7711 100644 --- a/.config/nvim/lua/user/neotree.lua +++ b/.config/nvim/lua/user/neotree.lua @@ -71,6 +71,12 @@ require("neo-tree").setup({ handler = function(arg) vim.opt.relativenumber = true end, - } + }, + { + event = "file_open_requested", + handler = function() + require("neo-tree.command").execute({ action = "close" }) + end + }, }, })