feat: make nvimtree lazy

This commit is contained in:
Fabio Lenherr / DashieTM 2023-04-06 00:07:43 +02:00
parent 39142a5231
commit 39ddcf0b7d
2 changed files with 43 additions and 1 deletions

View file

@ -1,6 +1,7 @@
return {
{
"nvim-tree/nvim-tree.lua",
lazy = true,
opts = {
on_attach = function(bufnr)
local api = require("nvim-tree.api")
@ -61,7 +62,6 @@ return {
vim.keymap.set("n", "<2-RightMouse>", api.tree.change_root_to_node, opts("CD"))
end,
respect_buf_cwd = true,
open_on_setup = true,
view = {
centralize_selection = false,
side = "right",