fix(nvim): add fallback for unknown mode in heirline

This commit is contained in:
Price Hiller 2024-05-18 06:28:38 -05:00
parent 5990963264
commit 09ab5e4c7b
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -101,7 +101,8 @@ return {
{
provider = function(self)
local padding = 1
return pad(padding) .. "" .. self.mode_names[self.mode] .. pad(padding)
return pad(padding) .. "" .. self.mode_names[self.mode]
or "" .. vim.inspect(self.mode) .. pad(padding)
end,
hl = function(self)
return { bg = self:mode_color(), bold = true, fg = colors.sumiInk0 }