mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +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 = {
|
misc = {
|
||||||
dots = "",
|
dots = "",
|
||||||
},
|
},
|
||||||
|
ft = {
|
||||||
|
octo = "",
|
||||||
|
},
|
||||||
dap = {
|
dap = {
|
||||||
Stopped = { " ", "DiagnosticWarn", "DapStoppedLine" },
|
Stopped = { " ", "DiagnosticWarn", "DapStoppedLine" },
|
||||||
Breakpoint = " ",
|
Breakpoint = " ",
|
||||||
|
|
|
@ -92,6 +92,10 @@ return {
|
||||||
text_align = "left",
|
text_align = "left",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
---@param opts bufferline.IconFetcherOpts
|
||||||
|
get_element_icon = function(opts)
|
||||||
|
return LazyVim.config.icons.ft[opts.filetype]
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue