File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
lua/nvim-tree/renderer/components Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 3939 "lowercase-global" : " Any" ,
4040 "missing-fields" : " Any" ,
4141 "missing-global-doc" : " Any" ,
42- "missing-local-export-doc" : " None " ,
42+ "missing-local-export-doc" : " Any " ,
4343 "missing-parameter" : " Any" ,
4444 "missing-return" : " Any" ,
4545 "missing-return-value" : " Any" ,
Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ local function config_symlinks()
55 M .i .symlink_arrow = M .config .symlink_arrow
66end
77
8+ --- @return string icon
9+ --- @return string ? name
810local function empty ()
9- return " "
11+ return " " , nil
1012end
1113
14+ --- @param node Node
15+ --- @param has_children boolean
16+ --- @return string icon
17+ --- @return string ? name
1218local function get_folder_icon_default (node , has_children )
1319 local is_symlink = node .links_to ~= nil
1420 local n
@@ -32,6 +38,10 @@ local function get_folder_icon_default(node, has_children)
3238 return n , nil
3339end
3440
41+ --- @param node Node
42+ --- @param has_children boolean
43+ --- @return string icon
44+ --- @return string ? name
3545local function get_folder_icon_webdev (node , has_children )
3646 local icon , hl_group = M .devicons .get_icon (node .name , node .extension )
3747 if not M .config .web_devicons .folder .color then
@@ -44,16 +54,22 @@ local function get_folder_icon_webdev(node, has_children)
4454 end
4555end
4656
57+ --- @return string icon
58+ --- @return string ? name
4759local function get_file_icon_default ()
4860 local hl_group = " NvimTreeFileIcon"
4961 local icon = M .config .glyphs .default
5062 if # icon > 0 then
5163 return icon , hl_group
5264 else
53- return " "
65+ return " " , nil
5466 end
5567end
5668
69+ --- @param fname string
70+ --- @param extension string
71+ --- @return string icon
72+ --- @return string ? name
5773local function get_file_icon_webdev (fname , extension )
5874 local icon , hl_group = M .devicons .get_icon (fname , extension )
5975 if not M .config .web_devicons .file .color then
You can’t perform that action at this time.
0 commit comments