fix(nvim): ensure heirline FileIcon properly picks up filename

This commit is contained in:
Price Hiller 2023-09-06 23:02:39 -05:00
parent 51b2f3fcfa
commit c832da918b
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -645,6 +645,10 @@ return {
provider = "%=",
},
{
init = function(self)
self.filename = vim.api.nvim_buf_get_name(0)
end,
{
provider = seps.full.left,
hl = function()
@ -652,7 +656,7 @@ return {
end,
},
{
provider = function ()
provider = function()
local ft = vim.bo.filetype or "[No Filetype]"
return ft .. " "
end,