conditional mouse enable for neotree

This commit is contained in:
Christian Nieves
2024-01-06 06:45:45 -06:00
parent e7b4ac0938
commit 7c53740379

View File

@ -17,6 +17,20 @@ return {
["O"] = "expand_all_nodes", ["O"] = "expand_all_nodes",
}, },
}, },
event_handlers = {
{
event = "neo_tree_buffer_enter",
handler = function(arg)
vim.opt.mouse = "a"
end,
},
{
event = "neo_tree_buffer_leave",
handler = function(arg)
vim.opt.mouse = ""
end,
},
},
}) })
end, end,
dependencies = { dependencies = {