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