Skip to content

Commit 14db8e5

Browse files
authored
Update init.lua
1 parent d830b74 commit 14db8e5

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

lua/custom/plugins/init.lua

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,47 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5-
return {}
5+
return {
6+
-- Other plugins...
7+
8+
-- Add nvim-tree plugin
9+
{
10+
'nvim-tree/nvim-tree.lua',
11+
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- For file icons
12+
config = function()
13+
require('nvim-tree').setup {
14+
disable_netrw = true, -- Disable netrw
15+
hijack_netrw = true, -- Hijack netrw for nvim-tree
16+
view = {
17+
side = 'left',
18+
width = 30,
19+
},
20+
renderer = {
21+
icons = {
22+
show = {
23+
file = true,
24+
folder = true,
25+
folder_arrow = true,
26+
git = true,
27+
},
28+
},
29+
},
30+
diagnostics = {
31+
enable = true, -- Show diagnostic info
32+
icons = {
33+
hint = '',
34+
info = '',
35+
warning = '',
36+
error = '',
37+
},
38+
},
39+
git = {
40+
enable = true, -- Show git status
41+
},
42+
filters = {
43+
dotfiles = false, -- Show hidden files
44+
},
45+
}
46+
end,
47+
},
48+
}

0 commit comments

Comments
 (0)