23 lines
547 B
Lua
23 lines
547 B
Lua
return {
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
branch = "v3.x",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-tree/nvim-web-devicons",
|
|
"MunifTanjim/nui.nvim",
|
|
},
|
|
config = function()
|
|
require("neo-tree").setup({
|
|
event_handlers = {
|
|
{
|
|
event = "file_opened",
|
|
handler = function(file_path)
|
|
require("neo-tree.command").execute({ action = "close" })
|
|
end,
|
|
},
|
|
},
|
|
})
|
|
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal right<CR>", {}) -- toggle
|
|
end,
|
|
}
|