From 09ab5e4c7b0e433c383bbad4ac7025c600291da9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 18 May 2024 06:28:38 -0500 Subject: [PATCH] fix(nvim): add fallback for unknown mode in heirline --- users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua b/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua index ca7d662d..773d99d9 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -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 }