mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(bufferline): show default icons
This commit is contained in:
parent
d1529f650f
commit
6e1d798229
1 changed files with 5 additions and 1 deletions
|
|
@ -40,7 +40,11 @@ return {
|
|||
},
|
||||
---@param opts bufferline.IconFetcherOpts
|
||||
get_element_icon = function(opts)
|
||||
return LazyVim.config.icons.ft[opts.filetype]
|
||||
local lazyvim_icon = LazyVim.config.icons.ft[opts.filetype]
|
||||
if lazyvim_icon then
|
||||
return lazyvim_icon
|
||||
end
|
||||
return require("nvim-web-devicons").get_icon_by_filetype(opts.filetype, { default = false })
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue