@@ -146,9 +146,8 @@ local function gen_buffer_entry(opts, buf, max_bufnr, cwd, prefix)
146146 return path .tail (bname )
147147 else
148148 bname = make_entry .lcol ({ filename = bname , lnum = buf .info .lnum }, opts ):gsub (" :$" , " " )
149- return make_entry .file (bname , vim .tbl_extend (" force" , opts ,
150- -- No support for git_icons, file_icons are added later
151- { cwd = cwd or opts .cwd or uv .cwd (), file_icons = false , git_icons = false }))
149+ return make_entry .file (bname ,
150+ vim .tbl_extend (" force" , opts , { cwd = cwd or opts .cwd or uv .cwd () }))
152151 end
153152 end )()
154153 if buf .flag == " %" then
@@ -161,15 +160,6 @@ local function gen_buffer_entry(opts, buf, max_bufnr, cwd, prefix)
161160 local bufnrstr = string.format (" %s%s%s" , leftbr ,
162161 utils .ansi_codes [opts .hls .buf_nr ](tostring (buf .bufnr )), rightbr )
163162 local buficon = " "
164- local hl = " "
165- if opts .file_icons then
166- buficon , hl = devicons .get_devicon (buf .info .name ,
167- -- shell-like icon for terminal buffers
168- utils .is_term_bufname (buf .info .name ) and " sh" or nil )
169- if hl and opts .color_icons then
170- buficon = utils .ansi_from_rgb (hl , buficon )
171- end
172- end
173163 local max_bufnr_w = 3 + # tostring (max_bufnr ) + utils .ansi_escseq_len (bufnrstr )
174164 local item_str = string.format (" %s%s%s%s%s%s%s%s" ,
175165 prefix or " " ,
0 commit comments