fix(bufferline): show default icons

This commit is contained in:
Jonas Bloch 2025-01-12 14:23:28 +01:00 committed by GitHub
parent d1529f650f
commit 6e1d798229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
},
},