Skip to content

Commit c37f726

Browse files
committed
fix(provider): filetypes are case sensitive so don't make lowercase
1 parent 912e9df commit c37f726

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/astroui/status/provider.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,7 @@ end
303303
-- @usage local heirline_component = { provider = require("astroui.status").provider.filetype() }
304304
-- @see astroui.status.utils.stylize
305305
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
306+
return function(self) return status_utils.stylize(vim.bo[self and self.bufnr or 0].filetype, opts) end
310307
end
311308

312309
--- A provider function for showing the current filename

0 commit comments

Comments
 (0)