From 634f80826fa9c67eccebb8557327cf30661814a4 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 19 May 2024 07:52:11 -0500 Subject: [PATCH] fix(nvim): properly set padding for heirline mode --- .../dots/.config/nvim/lua/plugins/configs/heirline.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 89c6ed26..cbd08062 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -104,8 +104,10 @@ return { { provider = function(self) local padding = 1 - return pad(padding) .. " " .. self.mode_names[self.mode] - or " " .. vim.inspect(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 }