From 4bfc6bc4f38355d570e56fed69e01c073d2b6a64 Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Fri, 31 Mar 2023 08:02:48 +0000 Subject: [PATCH] chore: autogen (vimdocs+formating) --- doc/lualine.txt | 1 + lua/lualine/components/filename.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/lualine.txt b/doc/lualine.txt index c4ab511..4952754 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -652,6 +652,7 @@ Component specific options These are options that are available on -- 1: Relative path -- 2: Absolute path -- 3: Absolute path, with tilde as the home directory + -- 4: Filename and parent dir, with tilde as the home directory shorting_target = 40, -- Shortens path to leave 40 spaces in the window -- for other components. (terrible name, any suggestions?) diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua index e6da77f..fe194a7 100644 --- a/lua/lualine/components/filename.lua +++ b/lua/lualine/components/filename.lua @@ -57,7 +57,7 @@ local function filename_and_parent(path, sep) elseif #segments == 1 then return segments[#segments] else - return table.concat({segments[#segments - 1], segments[#segments]}, sep) + return table.concat({ segments[#segments - 1], segments[#segments] }, sep) end end