lazyvim/lua/plugins/neotree.lua

17 lines
358 B
Lua

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