diff --git a/vim/.vim/lua/plugins/neotree.lua b/vim/.vim/lua/plugins/neotree.lua index 72bcc9e..fc115d6 100644 --- a/vim/.vim/lua/plugins/neotree.lua +++ b/vim/.vim/lua/plugins/neotree.lua @@ -17,6 +17,20 @@ return { ["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, dependencies = {