From 11d893b035477166468133db16f90a318e0d722e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 3 Sep 2023 22:31:20 -0500 Subject: [PATCH] fix(nvim): use proper filename modification for bufferline --- dots/.config/nvim/lua/plugins/configs/heirline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/heirline.lua b/dots/.config/nvim/lua/plugins/configs/heirline.lua index 299d675b..a58e888b 100644 --- a/dots/.config/nvim/lua/plugins/configs/heirline.lua +++ b/dots/.config/nvim/lua/plugins/configs/heirline.lua @@ -270,7 +270,7 @@ return { -- we redefine the filename component, as we probably only want the tail and not the relative path local StatusLineFileName = { init = function(self) - self.lfilename = vim.fn.fnamemodify(self.filename, ":.:~") + self.lfilename = vim.fn.fnamemodify(self.filename, ":~:.") if self.lfilename == "" then self.lfilename = "[No Name]" end