chore: autogen (vimdocs+formating)
This commit is contained in:
parent
f3dc0dcd4c
commit
bb8dd4c1c5
|
@ -1,4 +1,4 @@
|
||||||
local modules = require('lualine_require').lazy_require({ notices = 'lualine.utils.notices' })
|
local modules = require('lualine_require').lazy_require { notices = 'lualine.utils.notices' }
|
||||||
|
|
||||||
local function add_notice(notice)
|
local function add_notice(notice)
|
||||||
modules.notices.add_notice('theme(base16): ' .. notice)
|
modules.notices.add_notice('theme(base16): ' .. notice)
|
||||||
|
@ -38,15 +38,15 @@ end
|
||||||
|
|
||||||
local function setup_default()
|
local function setup_default()
|
||||||
return setup {
|
return setup {
|
||||||
bg = '#282a2e',
|
bg = '#282a2e',
|
||||||
alt_bg = '#373b41',
|
alt_bg = '#373b41',
|
||||||
dark_fg = '#969896',
|
dark_fg = '#969896',
|
||||||
fg = '#b4b7b4',
|
fg = '#b4b7b4',
|
||||||
light_fg = '#c5c8c6',
|
light_fg = '#c5c8c6',
|
||||||
normal = '#81a2be',
|
normal = '#81a2be',
|
||||||
insert = '#b5bd68',
|
insert = '#b5bd68',
|
||||||
visual = '#b294bb',
|
visual = '#b294bb',
|
||||||
replace = '#de935f',
|
replace = '#de935f',
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ local function setup_base16()
|
||||||
if not loaded then
|
if not loaded then
|
||||||
add_notice(
|
add_notice(
|
||||||
'nvim-base16 is not currently present in your runtimepath, make sure it is properly installed,'
|
'nvim-base16 is not currently present in your runtimepath, make sure it is properly installed,'
|
||||||
.. ' fallback to default colors.'
|
.. ' fallback to default colors.'
|
||||||
)
|
)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -65,27 +65,27 @@ local function setup_base16()
|
||||||
if not base16.colors and not vim.env.BASE16_THEME then
|
if not base16.colors and not vim.env.BASE16_THEME then
|
||||||
add_notice(
|
add_notice(
|
||||||
'nvim-base16 is not loaded yet, you should update your configuration to load it before lualine'
|
'nvim-base16 is not loaded yet, you should update your configuration to load it before lualine'
|
||||||
.. ' so that the colors from your colorscheme can be used, fallback to "tomorrow-night" theme.'
|
.. ' so that the colors from your colorscheme can be used, fallback to "tomorrow-night" theme.'
|
||||||
)
|
)
|
||||||
elseif not base16.colors and not base16.colorschemes[vim.env.BASE16_THEME] then
|
elseif not base16.colors and not base16.colorschemes[vim.env.BASE16_THEME] then
|
||||||
add_notice(
|
add_notice(
|
||||||
'The colorscheme "%s" defined by the environment variable "BASE16_THEME" is not handled by'
|
'The colorscheme "%s" defined by the environment variable "BASE16_THEME" is not handled by'
|
||||||
.. ' nvim-base16, fallback to "tomorrow-night" theme.'
|
.. ' nvim-base16, fallback to "tomorrow-night" theme.'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
local colors = base16.colors or base16.colorschemes[vim.env.BASE16_THEME or 'tomorrow-night']
|
local colors = base16.colors or base16.colorschemes[vim.env.BASE16_THEME or 'tomorrow-night']
|
||||||
|
|
||||||
return setup {
|
return setup {
|
||||||
bg = colors.base01,
|
bg = colors.base01,
|
||||||
alt_bg = colors.base02,
|
alt_bg = colors.base02,
|
||||||
dark_fg = colors.base03,
|
dark_fg = colors.base03,
|
||||||
fg = colors.base04,
|
fg = colors.base04,
|
||||||
light_fg = colors.base05,
|
light_fg = colors.base05,
|
||||||
normal = colors.base0D,
|
normal = colors.base0D,
|
||||||
insert = colors.base0B,
|
insert = colors.base0B,
|
||||||
visual = colors.base0E,
|
visual = colors.base0E,
|
||||||
replace = colors.base09,
|
replace = colors.base09,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue