feat(neo-tree): auto-close

This commit is contained in:
Michel 2024-09-02 14:42:19 +02:00
parent 2d89604576
commit 0acea75748
2 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,7 @@ local opt = vim.opt
opt.autowrite = false
opt.clipboard = ""
opt.foldlevelstart = 5
opt.spell = true
opt.tabstop = 8
opt.whichwrap = "b,s,<,>,[,]"
opt.wrapscan = false

View File

@ -15,6 +15,20 @@ return {
opts = { max_lines = 100 },
},
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
event_handlers = {
{
event = "file_opened",
handler = function() --auto close
require("neo-tree.command").execute({ action = "close" })
end,
},
},
},
},
{
"debugloop/telescope-undo.nvim",
dependencies = {