feat(bufferline): allow custom icons for filetypes

This commit is contained in:
Folke Lemaitre 2024-06-06 10:43:18 +02:00
parent c4ccd7cbce
commit bac4bba016
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 7 additions and 0 deletions

View file

@ -33,6 +33,9 @@ local defaults = {
misc = {
dots = "󰇘",
},
ft = {
octo = "",
},
dap = {
Stopped = { "󰁕 ", "DiagnosticWarn", "DapStoppedLine" },
Breakpoint = "",

View file

@ -92,6 +92,10 @@ return {
text_align = "left",
},
},
---@param opts bufferline.IconFetcherOpts
get_element_icon = function(opts)
return LazyVim.config.icons.ft[opts.filetype]
end,
},
},
config = function(_, opts)