From 055cde7b6f5c305da741d5c6c489479b39fdb207 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Sep 2023 23:32:40 -0500 Subject: [PATCH] fix(nvim): handle no filetype message correctly in heirline --- dots/.config/nvim/lua/plugins/configs/heirline.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/heirline.lua b/dots/.config/nvim/lua/plugins/configs/heirline.lua index 15a6eee6..d2bdc7b3 100644 --- a/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -657,7 +657,10 @@ return { }, { provider = function() - local ft = vim.bo.filetype or "[No Filetype]" + local ft = vim.bo.filetype + if ft == nil or ft == "" then + ft = "[No Filetype]" + end return ft .. " " end, hl = {