From e7efd7dd3a1cde676fbbc4ad4f20c64a9ee3077a Mon Sep 17 00:00:00 2001 From: shadmansaleh Date: Tue, 17 Oct 2023 09:37:53 +0000 Subject: [PATCH] chore: autogen (vimdocs+formating) --- doc/lualine.txt | 11 +++++++++++ lua/lualine/components/tabs/tab.lua | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/lualine.txt b/doc/lualine.txt index c2077bd..6e8a0e2 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -708,6 +708,7 @@ Component specific options These are options that are available on lualine_a = { { 'tabs', + tab_max_length = 40, -- Maximum width of each tab. The content will be shorten dynamically (example: apple/orange -> a/orange) max_length = vim.o.columns / 3, -- Maximum width of tabs component. -- Note: -- It can also be a function that returns @@ -716,6 +717,11 @@ Component specific options These are options that are available on -- 1: Shows tab_name -- 2: Shows tab_nr + tab_name + path = 0, -- 0: just shows the filename + -- 1: shows the relative path and shorten $HOME to ~ + -- 2: shows the full path + -- 3: shows the full path and shorten $HOME to ~ + -- Automatically updates active tab color to match color of other components (will be overidden if buffers_color is set) use_mode_colors = false, @@ -725,6 +731,11 @@ Component specific options These are options that are available on inactive = 'lualine_{section}_inactive', -- Color for inactive tab. }, + show_modified_status = true, -- Shows a symbol next to the tab name if the file has been modified. + symbols = { + modified = '[+]', -- Text to show when the file is modified. + }, + fmt = function(name, context) -- Show + if buffer is modified in tab local buflist = vim.fn.tabpagebuflist(context.tabnr) diff --git a/lua/lualine/components/tabs/tab.lua b/lua/lualine/components/tabs/tab.lua index 170095a..56c4788 100644 --- a/lua/lualine/components/tabs/tab.lua +++ b/lua/lualine/components/tabs/tab.lua @@ -33,7 +33,6 @@ function Tab:get_props() end end end - end ---returns name for tab. Tabs name is the name of buffer in last active window