mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
feat(bufferline): allow custom icons for filetypes
This commit is contained in:
parent
c4ccd7cbce
commit
bac4bba016
2 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,9 @@ local defaults = {
|
|||
misc = {
|
||||
dots = "",
|
||||
},
|
||||
ft = {
|
||||
octo = "",
|
||||
},
|
||||
dap = {
|
||||
Stopped = { " ", "DiagnosticWarn", "DapStoppedLine" },
|
||||
Breakpoint = " ",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue