@@ -88,6 +88,13 @@ local function render_icons(bufnr, l, icons, header)
88
88
return l
89
89
end
90
90
91
+ --- Create a buffer similar to :ru syntax/hitest.vim displaying each set icons
92
+ --- Icon, name, <tag>, concrete highlight definition
93
+ --- tag and header follows param
94
+ --- @param default_icon table no tag " Default"
95
+ --- @param icons_by_filename table[] filename " By File Name"
96
+ --- @param icons_by_file_extension table[] extension " By File Extension"
97
+ --- @param icons_by_operating_system table[] os " By Operating System"
91
98
return function (default_icon , icons_by_filename , icons_by_file_extension , icons_by_operating_system )
92
99
-- create a buffer
93
100
local bufnr = vim .api .nvim_create_buf (false , true )
@@ -97,7 +104,7 @@ return function(default_icon, icons_by_filename, icons_by_file_extension, icons_
97
104
l = render_icons (bufnr , l , { default_icon }, " Default" )
98
105
l = render_icons (bufnr , l , icons_by_filename , " By File Name" )
99
106
l = render_icons (bufnr , l , icons_by_file_extension , " By File Extension" )
100
- l = render_icons (bufnr , l , icons_by_operating_system , " By Operating System" )
107
+ render_icons (bufnr , l , icons_by_operating_system , " By Operating System" )
101
108
102
109
-- finalise and focus the buffer
103
110
vim .api .nvim_buf_set_option (bufnr , " modifiable" , false )
0 commit comments