fix(nvim): use proper filename modification for bufferline
This commit is contained in:
parent
b4b4b038d1
commit
11d893b035
@ -270,7 +270,7 @@ return {
|
|||||||
-- we redefine the filename component, as we probably only want the tail and not the relative path
|
-- we redefine the filename component, as we probably only want the tail and not the relative path
|
||||||
local StatusLineFileName = {
|
local StatusLineFileName = {
|
||||||
init = function(self)
|
init = function(self)
|
||||||
self.lfilename = vim.fn.fnamemodify(self.filename, ":.:~")
|
self.lfilename = vim.fn.fnamemodify(self.filename, ":~:.")
|
||||||
if self.lfilename == "" then
|
if self.lfilename == "" then
|
||||||
self.lfilename = "[No Name]"
|
self.lfilename = "[No Name]"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user