@@ -3,28 +3,25 @@ return {
3
3
branch = " v3.x" ,
4
4
dependencies = {
5
5
" nvim-lua/plenary.nvim" ,
6
- " BrunoCiccarino/neokinds " ,
6
+ " nvim-tree/nvim-web-devicons " ,
7
7
" MunifTanjim/nui.nvim" ,
8
8
},
9
9
cmd = " Neotree" ,
10
10
keys = {
11
- { " \\ " , " :Neotree reveal <CR>" , desc = " NeoTree reveal " , silent = true },
11
+ { " <C-n> " , " :Neotree toggle <CR>" , desc = " Toggle NeoTree " , silent = true },
12
12
},
13
- -- Did it this way so i dont need to change it too much now
14
- -- TODO: We should probably take a look into this later
15
- opts = function ()
16
- local neokinds = require " neokinds"
17
- return {
13
+ opts = {
14
+ options = {
18
15
close_if_last_window = false ,
19
16
popup_border_style = " rounded" ,
20
17
enable_git_status = true ,
21
18
enable_diagnostics = true ,
22
19
default_component_configs = {
23
20
icon = {
24
- folder_closed = neokinds . config . icons . folders . closed ,
25
- folder_open = neokinds . config . icons . folders . open ,
26
- folder_empty = neokinds . config . icons . folders . empty ,
27
- default = neokinds . config . icons . files . default ,
21
+ folder_closed = " " ,
22
+ folder_open = " " ,
23
+ folder_empty = " " ,
24
+ default = " " ,
28
25
},
29
26
},
30
27
filesystem = {
@@ -33,7 +30,12 @@ return {
33
30
},
34
31
components = {
35
32
icon = function (config , node , state )
36
- return neokinds .icon (config , node , state )
33
+ local webdevicons = require " nvim-web-devicons"
34
+ local icon , icon_color = webdevicons .get_icon_color (node .name , node .ext , { default = true })
35
+ return {
36
+ text = icon or config .default ,
37
+ highlight = icon_color and { fg = icon_color } or nil ,
38
+ }
37
39
end ,
38
40
},
39
41
window = {
@@ -42,6 +44,6 @@ return {
42
44
},
43
45
},
44
46
},
45
- }
46
- end ,
47
+ },
48
+ } ,
47
49
}
0 commit comments