dotfiles/home/.config/nvim/lua/plugins/nvim-tree.lua
Marko Korhonen f44e0b3274 Refactor neovim config file structure
All plugins are now in their own files with their lazy specifications
and configurations. Also moved lazy initialization to init.lua because
it is very compact now
2023-11-18 02:27:14 +02:00

20 lines
416 B
Lua

-- Tree explorer
return {
"kyazdani42/nvim-tree.lua",
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
diagnostics = {
enable = true,
show_on_dirs = true,
},
renderer = {
highlight_git = true,
},
},
config = function(spec)
require("nvim-tree").setup(spec.opts)
-- Open/close with alt-o
vim.keymap.set("n", "<M-o>", vim.cmd.NvimTreeToggle)
end,
}