nvim/lua/core/plugins/file-explorer.lua

30 lines
696 B
Lua

-- Homepage: https://github.com/nvim-neo-tree/neo-tree.nvim
-- What is it?
-- A File Explorer
-- For more information on this plugin: https://github.com/nvim-neo-tree/neo-tree.nvim?tab=readme-ov-file#quickstart
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
{ "3rd/image.nvim", opts = {} },
},
lazy = false,
---@module "neo-tree"
---@type neotree.Config?
opts = {
window = {
mappings = {
["P"] = "toggle_preview",
}
}
},
vim.keymap.set("n", "<leader>mm", "<Cmd>Neotree toggle<CR>"),
vim.keymap.set("n", "<leader>jj", "<Cmd>Neotree action=focus<CR>")
}