2023-05-11 18:41:27 +02:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
|
|
opts = {
|
2023-11-09 20:24:20 +01:00
|
|
|
window = {
|
|
|
|
width = 50,
|
|
|
|
mappings = {
|
|
|
|
["<space>"] = false, -- disable space until we figure out which-key disabling
|
|
|
|
[">"] = "next_source",
|
|
|
|
["<"] = "prev_source",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
event_handlers = {
|
|
|
|
{
|
|
|
|
event = "file_opened",
|
|
|
|
handler = function(file_path)
|
|
|
|
-- auto close
|
|
|
|
-- vimc.cmd("Neotree close")
|
|
|
|
-- OR
|
|
|
|
require("neo-tree.command").execute({ action = "close" })
|
|
|
|
end
|
|
|
|
},
|
|
|
|
},
|
2023-05-11 18:41:27 +02:00
|
|
|
close_if_last_window = true,
|
2023-11-09 20:24:20 +01:00
|
|
|
},
|
2023-05-11 18:41:27 +02:00
|
|
|
}
|
|
|
|
}
|