Fix: example of plugins.bufferline.settings.options.get_element_icon used a wrong variable

This commit is contained in:
Kiria 2025-01-28 16:05:51 +08:00 committed by GitHub
parent 8b09c4a829
commit a64048e9f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -604,7 +604,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
-- This can be used to change how bufferline fetches the icon
-- for an element e.g. a buffer or a tab.
-- e.g.
local icon, hl = require('nvim-web-devicons').get_icon_by_filetype(opts.filetype, { default = false })
local icon, hl = require('nvim-web-devicons').get_icon_by_filetype(element.filetype, { default = false })
return icon, hl
end
'';