neovim/lua/plugins/nvim-tree.lua

24 lines
503 B
Lua
Raw Normal View History

-- Install a file explorer
-- https://github.com/nvim-tree/nvim-tree.lua
-- nvim-tree as replacement for neo-tree
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup({})
-- <leader>e to toggle the explorer buffer
vim.keymap.set(
"n",
"<leader>e",
"<cmd>NvimTreeFindFileToggle<CR>",
{ desc = "Toggle the file explorer" }
)
end,
}