fix(nvim): handle no filetype message correctly in heirline

This commit is contained in:
Price Hiller 2023-09-06 23:32:40 -05:00
parent c832da918b
commit 055cde7b6f
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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 = {