diff --git a/lazy-lock.json b/lazy-lock.json index a899dd3..4a3bda3 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,8 @@ { "catppuccin": { "branch": "main", "commit": "a1439ad7c584efb3d0ce14ccb835967f030450fe" }, "lazy.nvim": { "branch": "main", "commit": "3f13f080434ac942b150679223d54f5ca91e0d52" }, - "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, + "nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" }, + "nvim-web-devicons": { "branch": "master", "commit": "beb6367ab8496c9e43f22e0252735fdadae1872d" }, + "plenary.nvim": { "branch": "master", "commit": "5129a3693c482fcbc5ab99a7706ffc4360b995a0" }, "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" } } \ No newline at end of file diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index a37f369..c1ed378 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -1,5 +1,3 @@ vim.g.mapleader = " " --- open file browser -vim.keymap.set("n", "e", vim.cmd.Ex) -- lazy vim.keymap.set("n", "l", vim.cmd.Lazy) diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua new file mode 100644 index 0000000..44fe0b7 --- /dev/null +++ b/lua/plugins/nvim-tree.lua @@ -0,0 +1,17 @@ +return { + 'nvim-tree/nvim-tree.lua', + version = '*', + lazy = false, + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + vim.g.loaded_netrw = 1 + vim.g.loaded_netrwPlugin = 1 + vim.opt.termguicolors = true + + require('nvim-tree').setup() + + local api = require('nvim-tree.api') + vim.keymap.set('n', 'e', api.tree.open) + vim.keymap.set('n', 'E', api.tree.close) + end +}