From a4096316e1096a3714d331fdb0ecd749232f6de5 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Thu, 31 Oct 2024 20:14:08 +0100 Subject: [PATCH] fix(statusline): filepath sometimes not being relative --- lua/core/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index 012ec10..380d2f0 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -130,7 +130,7 @@ function _G._status_line_diagnostics() return table.concat(parts, " ") end -vim.opt.statusline = " %f%4( %m%) %{%v:lua._status_line_git()%} %=" +vim.opt.statusline = " %{expand('%:.')}%4( %m%) %{%v:lua._status_line_git()%} %=" .. " %{%v:lua._status_line_diagnostics()%} " .. " %{&filetype} %-6.6{&fileencoding}" .. " %-4.4{&fileformat} %4.4(%p%%%)%5.5l:%-3.3v"