From 4c72a8d0c5d77dd89bc1baf56a6e81bf0d0b4f12 Mon Sep 17 00:00:00 2001 From: baldeau Date: Mon, 16 Sep 2024 13:25:58 +0200 Subject: [PATCH] add nvim-tree as secondary file manager --- lua/config/remap.lua | 2 +- lua/plugins/ui.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/config/remap.lua b/lua/config/remap.lua index dc10245..d5f9c6b 100644 --- a/lua/config/remap.lua +++ b/lua/config/remap.lua @@ -3,10 +3,10 @@ vim.keymap.set("n", "pv", vim.cmd.Ex) --vim.keymap.set("n", "n", vim.cmd.Ex) --vim.keymap.set("n", "", vim.cmd.Ex) ---[[ vim.keymap.set("n", "", ":NvimTreeToggle", { noremap = true, }) +--[[ vim.keymap.set("n", "n", ":NvimTreeToggle", { noremap = true, }) diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 3fa35a2..c0a7e07 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -7,6 +7,17 @@ return { --dependencies = { { "echasnovski/mini.icons", opts = {} } }, dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons }, + { + "nvim-tree/nvim-tree.lua", + version = "*", + lazy = false, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + require("nvim-tree").setup({}) + end, + }, { "kyazdani42/nvim-web-devicons", opts = {},