feat(bufferline): allow custom icons for filetypes

This commit is contained in:
Folke Lemaitre committed 2024-06-06 10:46:56 +02:00
1 parent c4ccd7cbce
commit bac4bba016
2 files changed
+7

No files matched your search

+3
View File
@@ -33,6 +33,9 @@ local defaults = {
misc = {
dots = "󰇘",
},
ft = {
octo = "",
},
dap = {
Stopped = { "󰁕 ", "DiagnosticWarn", "DapStoppedLine" },
Breakpoint = "",
+4
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)