conditional mouse enable for neotree
This commit is contained in:
@ -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 = {
|
||||||
|
Reference in New Issue
Block a user