1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
return {
{
"nvim-tree/nvim-tree.lua",
config = function()
require("nvim-tree").setup({
sync_root_with_cwd = false,
update_focused_file = {
enable = true,
update_root = false,
},
renderer = {
indent_markers = { enable = true },
highlight_git = true,
highlight_opened_files = "all",
},
})
end,
dependencies = { "nvim-tree/nvim-web-devicons" },
},
-- Add nvim-tree which-key shortcuts
{
"folke/which-key.nvim",
opts = function(_, opts)
if type(opts) ~= "table" then
opts = {}
end
if type(opts.f) ~= "table" then
opts["f"] = {}
end
opts.f["e"] = { "<cmd>NvimTreeToggle<cr>", "Explorer" }
end,
},
}
|