Lualine: added padding

This commit is contained in:
pr0c3550r 2023-03-25 23:21:55 +01:00
parent 7121ecaf50
commit 1258cef664

View file

@ -12,22 +12,29 @@ return {
require('lualine').setup {
options = {
theme = custom_gruvbox,
section_separators = '',
section_separators = ' ',
component_separators = ' '
},
sections = {
lualine_a = { 'mode' },
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
color = { fg = '#d8a657', bg = '#141617', gui = 'bold' },
padding = 1,
}
},
lualine_c = {
{
'filename',
color = { gui = 'italic', fg = '#d3869b', bg = '#1d2021' },
padding = 1,
path = 1,
}
},
@ -35,6 +42,7 @@ return {
{
'filetype',
color = { bg = '#1d2021', fg = '#d4be98', gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
@ -46,6 +54,7 @@ return {
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
@ -53,22 +62,35 @@ return {
'diff',
icon = { '', color = { bg = '#141617', fg = '#d8a657', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = { 'location' }
lualine_z = {
{
'location',
padding = 1,
}
}
},
inactive_sections = {
lualine_a = { 'mode' },
lualine_a = {
{
'mode',
padding = 1,
}
},
lualine_b = {
{
'branch',
icon = '',
padding = 1,
}
},
lualine_c = {
{
'filename',
padding = 1,
path = 1,
}
},
@ -76,6 +98,7 @@ return {
{
'filetype',
color = { gui = 'italic' },
padding = 1,
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
@ -87,6 +110,7 @@ return {
color = { gui = 'bold', bg = '#141617' },
sections = { 'error', 'warn', 'info', 'hint' },
symbols = { error = "", warn = "", info = "", hint = "󰌶 " },
padding = 1,
update_in_insert = true
},
@ -94,9 +118,15 @@ return {
'diff',
icon = { '', color = { bg = '#141617', gui = 'bold' } },
color = { gui = 'bold', bg = '#141617' },
padding = 1,
}
},
lualine_z = { 'location' }
lualine_z = {
{
'location',
padding = 1,
}
}
},
}
end,