From 6f80cbdba2fb9f2e090d1e5c42d2c5f9e19efb64 Mon Sep 17 00:00:00 2001 From: Jose Gabriel Companioni Benitez Date: Sun, 21 Jul 2024 22:28:12 -0400 Subject: [PATCH] Using Neotree instead of Lua Tree --- lazy-lock.json | 3 ++- lua/plugins_config/lua-tree.lua | 10 ---------- lua/plugins_config/neo-tree.lua | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 11 deletions(-) delete mode 100644 lua/plugins_config/lua-tree.lua create mode 100644 lua/plugins_config/neo-tree.lua diff --git a/lazy-lock.json b/lazy-lock.json index e74ca69..4c077f1 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -5,17 +5,18 @@ "coc.nvim": { "branch": "release", "commit": "ebe2a2058ed85d3884f8010a53bac25edbf9675c" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "gitsigns.nvim": { "branch": "main", "commit": "f4928ba14eb6c667786ac7d69927f6aee6719f1e" }, + "image.nvim": { "branch": "master", "commit": "61c76515cfc3cdac8123ece9e9761b20c3dc1315" }, "indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" }, "lazy.nvim": { "branch": "main", "commit": "5473e3d77c13e40fc4758fa977a1f2c14d0b4ceb" }, "leap.nvim": { "branch": "main", "commit": "c099aecaf858574909bd38cbadb8543c4dd16611" }, "lualine.nvim": { "branch": "master", "commit": "544dd1583f9bb27b393f598475c89809c4d5e86b" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, "neogit": { "branch": "master", "commit": "af1d8d88f426a4da63c913f3b81a37350dbe8d02" }, "noice.nvim": { "branch": "main", "commit": "daa5f6908e97c89ca3e9861e03bdf356ea48cc72" }, "nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" }, "nvim-autopairs": { "branch": "master", "commit": "78a4507bb9ffc9b00f11ae0ac48243d00cb9194d" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, - "nvim-tree.lua": { "branch": "master", "commit": "f9ff00bc06d7cb70548a3847d7a2a05e928bc988" }, "nvim-treesitter": { "branch": "master", "commit": "0758155d4dfacfa959ad82ffa3879cb69c82e719" }, "nvim-treesitter-refactor": { "branch": "master", "commit": "65ad2eca822dfaec2a3603119ec3cc8826a7859e" }, "nvim-ufo": { "branch": "main", "commit": "1b5f2838099f283857729e820cc05e2b19df7a2c" }, diff --git a/lua/plugins_config/lua-tree.lua b/lua/plugins_config/lua-tree.lua deleted file mode 100644 index f15d4e7..0000000 --- a/lua/plugins_config/lua-tree.lua +++ /dev/null @@ -1,10 +0,0 @@ -vim.g.loaded_netrw = 1 -vim.g.loaded_netrwPlugin = 1 - -return { - 'nvim-tree/nvim-tree.lua', - config = true, - dependencies = { - 'nvim-tree/nvim-web-devicons' - } -} diff --git a/lua/plugins_config/neo-tree.lua b/lua/plugins_config/neo-tree.lua new file mode 100644 index 0000000..0e48211 --- /dev/null +++ b/lua/plugins_config/neo-tree.lua @@ -0,0 +1,19 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information + }, + opts = { + git_status_async = false, + window = { + mappings = { + [""] = "open", + }, + }, + + } +}