From c832da918b505ac2432b9e1250b229cb008dace6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Sep 2023 23:02:39 -0500 Subject: [PATCH] fix(nvim): ensure heirline FileIcon properly picks up filename --- dots/.config/nvim/lua/plugins/configs/heirline.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/heirline.lua b/dots/.config/nvim/lua/plugins/configs/heirline.lua index f907b294..15a6eee6 100644 --- a/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -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,