add auto neotree close on file open

This commit is contained in:
2025-06-02 23:02:12 +05:00
parent cfbde51b65
commit 4478c5d592

View File

@ -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
},
},
})