add auto neotree close on file open
This commit is contained in:
@ -71,6 +71,12 @@ require("neo-tree").setup({
|
|||||||
handler = function(arg)
|
handler = function(arg)
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
end,
|
end,
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
event = "file_open_requested",
|
||||||
|
handler = function()
|
||||||
|
require("neo-tree.command").execute({ action = "close" })
|
||||||
|
end
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user