From 7f1d7ba3fbd098d2afd0ee445e5889aca0ffe968 Mon Sep 17 00:00:00 2001 From: Jaekyeom Kim Date: Wed, 31 Mar 2021 23:47:38 +0900 Subject: [PATCH] fix: displaying relative paths. (#155) --- lua/lualine/components/filename.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua index 27ebfb1..35d6bb3 100644 --- a/lua/lualine/components/filename.lua +++ b/lua/lualine/components/filename.lua @@ -11,7 +11,7 @@ local function filename(options) if not options.full_path then data = vim.fn.expand('%:t') elseif options.shorten then - data = vim.fn.expand('%') + data = vim.fn.expand('%:~:.') else data = vim.fn.expand('%:p') end