dotfiles/home/.config/nvim/lua/plugins/nvim-tree.lua

26 lines
469 B
Lua

-- Tree explorer
--- @type LazyPluginSpec
return {
"kyazdani42/nvim-tree.lua",
lazy = false,
dependencies = { "kyazdani42/nvim-web-devicons" },
opts = {
diagnostics = {
enable = true,
show_on_dirs = true,
},
renderer = {
highlight_git = true,
},
update_focused_file = {
enable = true,
},
},
keys = {
{
desc = "Open/close nvim-tree",
"<leader>o",
"<cmd>NvimTreeToggle<cr>",
},
},
}