chore: autogen (vimdocs+formating)
This commit is contained in:
parent
7f5f2d811d
commit
557715ff91
|
@ -521,6 +521,9 @@ Component specific options These are options that are available on
|
||||||
alpha = 'Alpha'
|
alpha = 'Alpha'
|
||||||
}, -- Shows specific buffer name for that filetype ( { `filetype` = `buffer_name`, ... } )
|
}, -- Shows specific buffer name for that filetype ( { `filetype` = `buffer_name`, ... } )
|
||||||
|
|
||||||
|
-- Automatically updates active buffer color to match color of other components (will be overidden if buffers_color is set)
|
||||||
|
use_mode_colors = false,
|
||||||
|
|
||||||
buffers_color = {
|
buffers_color = {
|
||||||
-- Same values as the general color option can be used here.
|
-- Same values as the general color option can be used here.
|
||||||
active = 'lualine_{section}_normal', -- Color for active buffer.
|
active = 'lualine_{section}_normal', -- Color for active buffer.
|
||||||
|
@ -691,6 +694,9 @@ 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
|
||||||
|
|
||||||
|
-- Automatically updates active tab color to match color of other components (will be overidden if buffers_color is set)
|
||||||
|
use_mode_colors = false,
|
||||||
|
|
||||||
tabs_color = {
|
tabs_color = {
|
||||||
-- Same values as the general color option can be used here.
|
-- Same values as the general color option can be used here.
|
||||||
active = 'lualine_{section}_normal', -- Color for active tab.
|
active = 'lualine_{section}_normal', -- Color for active tab.
|
||||||
|
@ -739,6 +745,9 @@ Component specific options These are options that are available on
|
||||||
|
|
||||||
disabled_buftypes = { 'quickfix', 'prompt' }, -- Hide a window if its buffer's type is disabled
|
disabled_buftypes = { 'quickfix', 'prompt' }, -- Hide a window if its buffer's type is disabled
|
||||||
|
|
||||||
|
-- Automatically updates active window color to match color of other components (will be overidden if buffers_color is set)
|
||||||
|
use_mode_colors = false,
|
||||||
|
|
||||||
windows_color = {
|
windows_color = {
|
||||||
-- Same values as the general color option can be used here.
|
-- Same values as the general color option can be used here.
|
||||||
active = 'lualine_{section}_normal', -- Color for active window.
|
active = 'lualine_{section}_normal', -- Color for active window.
|
||||||
|
|
|
@ -51,9 +51,11 @@ end
|
||||||
function M:init(options)
|
function M:init(options)
|
||||||
M.super.init(self, options)
|
M.super.init(self, options)
|
||||||
-- if use_mode_colors is set, use a function so that the colors update
|
-- if use_mode_colors is set, use a function so that the colors update
|
||||||
local default_active = options.use_mode_colors and
|
local default_active = options.use_mode_colors
|
||||||
function() return get_hl('lualine_' .. options.self.section, true) end
|
and function()
|
||||||
or get_hl('lualine_' .. options.self.section, true)
|
return get_hl('lualine_' .. options.self.section, true)
|
||||||
|
end
|
||||||
|
or get_hl('lualine_' .. options.self.section, true)
|
||||||
default_options.buffers_color = {
|
default_options.buffers_color = {
|
||||||
active = default_active,
|
active = default_active,
|
||||||
inactive = get_hl('lualine_' .. options.self.section, false),
|
inactive = get_hl('lualine_' .. options.self.section, false),
|
||||||
|
|
|
@ -36,9 +36,11 @@ end
|
||||||
function M:init(options)
|
function M:init(options)
|
||||||
M.super.init(self, options)
|
M.super.init(self, options)
|
||||||
-- if use_mode_colors is set, use a function so that the colors update
|
-- if use_mode_colors is set, use a function so that the colors update
|
||||||
local default_active = options.use_mode_colors and
|
local default_active = options.use_mode_colors
|
||||||
function() return get_hl('lualine_' .. options.self.section, true) end
|
and function()
|
||||||
or get_hl('lualine_' .. options.self.section, true)
|
return get_hl('lualine_' .. options.self.section, true)
|
||||||
|
end
|
||||||
|
or get_hl('lualine_' .. options.self.section, true)
|
||||||
default_options.tabs_color = {
|
default_options.tabs_color = {
|
||||||
active = default_active,
|
active = default_active,
|
||||||
inactive = get_hl('lualine_' .. options.self.section, false),
|
inactive = get_hl('lualine_' .. options.self.section, false),
|
||||||
|
|
Loading…
Reference in New Issue