Configure neotree

This commit is contained in:
Drew Galbraith 2024-12-27 19:44:05 -08:00
parent 1fb842c5f9
commit 9d9b5f0b93
1 changed files with 16 additions and 0 deletions

16
lua/plugins/neotree.lua Normal file
View File

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