We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 912e9df commit c37f726Copy full SHA for c37f726
lua/astroui/status/provider.lua
@@ -303,10 +303,7 @@ end
303
-- @usage local heirline_component = { provider = require("astroui.status").provider.filetype() }
304
-- @see astroui.status.utils.stylize
305
function M.filetype(opts)
306
- return function(self)
307
- local buffer = vim.bo[self and self.bufnr or 0]
308
- return status_utils.stylize(buffer.filetype:lower(), opts)
309
- end
+ return function(self) return status_utils.stylize(vim.bo[self and self.bufnr or 0].filetype, opts) end
310
end
311
312
--- A provider function for showing the current filename
0 commit comments