feat(bufferline): allow custom icons for filetypes
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user