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
No known key found for this signature in database

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