Use nvim-tree instead of netrw

This commit is contained in:
ekzyis 2024-04-22 16:52:03 +02:00
parent a19b3dc353
commit 324bd8e74e
3 changed files with 20 additions and 3 deletions

View File

@ -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" }
}

View File

@ -1,5 +1,3 @@
vim.g.mapleader = " "
-- open file browser
vim.keymap.set("n", "<leader>e", vim.cmd.Ex)
-- lazy
vim.keymap.set("n", "<leader>l", vim.cmd.Lazy)

17
lua/plugins/nvim-tree.lua Normal file
View File

@ -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', '<leader>e', api.tree.open)
vim.keymap.set('n', '<leader>E', api.tree.close)
end
}