File tree 2 files changed +19
-3
lines changed
lua/nvim-tree/renderer/components
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 39
39
"lowercase-global" : " Any" ,
40
40
"missing-fields" : " Any" ,
41
41
"missing-global-doc" : " Any" ,
42
- "missing-local-export-doc" : " None " ,
42
+ "missing-local-export-doc" : " Any " ,
43
43
"missing-parameter" : " Any" ,
44
44
"missing-return" : " Any" ,
45
45
"missing-return-value" : " Any" ,
Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ local function config_symlinks()
5
5
M .i .symlink_arrow = M .config .symlink_arrow
6
6
end
7
7
8
+ --- @return string icon
9
+ --- @return string ? name
8
10
local function empty ()
9
- return " "
11
+ return " " , nil
10
12
end
11
13
14
+ --- @param node Node
15
+ --- @param has_children boolean
16
+ --- @return string icon
17
+ --- @return string ? name
12
18
local function get_folder_icon_default (node , has_children )
13
19
local is_symlink = node .links_to ~= nil
14
20
local n
@@ -32,6 +38,10 @@ local function get_folder_icon_default(node, has_children)
32
38
return n , nil
33
39
end
34
40
41
+ --- @param node Node
42
+ --- @param has_children boolean
43
+ --- @return string icon
44
+ --- @return string ? name
35
45
local function get_folder_icon_webdev (node , has_children )
36
46
local icon , hl_group = M .devicons .get_icon (node .name , node .extension )
37
47
if not M .config .web_devicons .folder .color then
@@ -44,16 +54,22 @@ local function get_folder_icon_webdev(node, has_children)
44
54
end
45
55
end
46
56
57
+ --- @return string icon
58
+ --- @return string ? name
47
59
local function get_file_icon_default ()
48
60
local hl_group = " NvimTreeFileIcon"
49
61
local icon = M .config .glyphs .default
50
62
if # icon > 0 then
51
63
return icon , hl_group
52
64
else
53
- return " "
65
+ return " " , nil
54
66
end
55
67
end
56
68
69
+ --- @param fname string
70
+ --- @param extension string
71
+ --- @return string icon
72
+ --- @return string ? name
57
73
local function get_file_icon_webdev (fname , extension )
58
74
local icon , hl_group = M .devicons .get_icon (fname , extension )
59
75
if not M .config .web_devicons .file .color then
You can’t perform that action at this time.
0 commit comments