chore: autogen (vimdocs+formating)

This commit is contained in:
shadmansaleh 2023-10-17 09:37:53 +00:00 committed by github-actions[bot]
parent 5d85dc7858
commit e7efd7dd3a
2 changed files with 11 additions and 1 deletions

View File

@ -708,6 +708,7 @@ Component specific options These are options that are available on
lualine_a = { lualine_a = {
{ {
'tabs', '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. max_length = vim.o.columns / 3, -- Maximum width of tabs component.
-- Note: -- Note:
-- It can also be a function that returns -- 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 -- 1: Shows tab_name
-- 2: Shows tab_nr + 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) -- Automatically updates active tab color to match color of other components (will be overidden if buffers_color is set)
use_mode_colors = false, 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. 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) fmt = function(name, context)
-- Show + if buffer is modified in tab -- Show + if buffer is modified in tab
local buflist = vim.fn.tabpagebuflist(context.tabnr) local buflist = vim.fn.tabpagebuflist(context.tabnr)

View File

@ -33,7 +33,6 @@ function Tab:get_props()
end end
end end
end end
end end
---returns name for tab. Tabs name is the name of buffer in last active window ---returns name for tab. Tabs name is the name of buffer in last active window