setup nvim-tree

This commit is contained in:
2025-09-11 15:36:02 +02:00
parent 9c8ca2225d
commit 95709eb068
5 changed files with 49 additions and 11 deletions

1
lua/keymaps.lua Normal file
View File

@@ -0,0 +1 @@
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", { desc = "Toggle file explorer" })

5
lua/options.lua Normal file
View File

@@ -0,0 +1,5 @@
vim.opt.guicursor = ""
vim.opt.relativenumber = false
vim.opt.shiftwidth = 4
vim.g.mapleader = " "
vim.g.maplocalleader = " "

4
lua/plugins.lua Normal file
View File

@@ -0,0 +1,4 @@
return {
require("plugins.catppuccin"),
require("plugins.nvim-tree")
}

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

@@ -0,0 +1,35 @@
return {
"nvim-tree/nvim-tree.lua",
tag = "v1.14.0",
dependencies = {
{
"nvim-tree/nvim-web-devicons",
tag = "v0.100"
}
},
name = "nvim-tree",
config = function()
require("nvim-tree").setup({
view = {
width = 30,
side = "left"
},
git = {
enable = true
},
renderer = {
highlight_git = true
},
filters = {
dotfiles = false,
custom = {
".git"
}
},
update_cwd = true,
update_focused_file = {
enable = true
}
})
end
}