fix(nvim): use proper filename modification for bufferline

This commit is contained in:
Price Hiller 2023-09-03 22:31:20 -05:00
parent b4b4b038d1
commit 11d893b035
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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