Some small changes
This commit is contained in:
32
lua/plugins/nvim-tree.lua
Normal file
32
lua/plugins/nvim-tree.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
|
||||
opts = {},
|
||||
|
||||
keys = {
|
||||
{
|
||||
"<leader>e",
|
||||
function()
|
||||
require("nvim-tree.api").tree.toggle({
|
||||
path = "<args>",
|
||||
find_file = false,
|
||||
update_root = false,
|
||||
focus = true,
|
||||
})
|
||||
end,
|
||||
desc = "Toggle tree"
|
||||
},
|
||||
{
|
||||
"<C-e>",
|
||||
function()
|
||||
require("nvim-tree.api").tree.change_root_to_parent()
|
||||
end,
|
||||
desc = "Change root to parent"
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user