fix(nvim): handle no filetype message correctly in heirline
This commit is contained in:
parent
c832da918b
commit
055cde7b6f
@ -657,7 +657,10 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
provider = function()
|
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 .. " "
|
return ft .. " "
|
||||||
end,
|
end,
|
||||||
hl = {
|
hl = {
|
||||||
|
Loading…
Reference in New Issue
Block a user