statusline

This commit is contained in:
siduck76 2021-03-08 11:49:27 +05:30
parent a9e02c662c
commit 806d038ffb

View File

@ -10,22 +10,21 @@ local colors = {
yellow = '#A3BE8C', yellow = '#A3BE8C',
cyan = '#22262C', cyan = '#22262C',
darkblue = '#61afef', darkblue = '#61afef',
green = '#afd700', green = '#BBE67E',
orange = '#FF8800', orange = '#FF8800',
purple = '#252930', purple = '#252930',
magenta = '#c678dd', magenta = '#c678dd',
blue = '#22262C'; blue = '#22262C';
red = '#ec5f67', red = '#DF8890',
firored = '#DF8890',
lightbg = '#3C4048', lightbg = '#3C4048',
nord = '#81A1C1', nord = '#81A1C1',
nordYel = '#EBCB8B' greenYel = '#EBCB8B'
} }
gls.left[1] = { gls.left[1] = {
FirstElement = { leftRounded = {
provider = function() return '' end, provider = function() return '' end,
highlight = { colors.nord, colors.bg } highlight = { colors.green, colors.bg }
}, },
} }
@ -34,7 +33,7 @@ gls.left[2] = {
provider = function() provider = function()
return ' 󰀘 ' return ' 󰀘 '
end, end,
highlight = {colors.bg,colors.nord}, highlight = {colors.bg,colors.green},
separator = ' ', separator = ' ',
separator_highlight = {colors.lightbg,colors.lightbg}, separator_highlight = {colors.lightbg,colors.lightbg},
}, },
@ -51,26 +50,24 @@ gls.left[3] ={
gls.left[4] = { gls.left[4] = {
FileName = { FileName = {
provider = {'FileName','FileSize'}, provider = {'FileName','FileSize'},
separator = ' ',
separator_highlight = {colors.line_bg,colors.lightbg},
condition = buffer_not_empty, condition = buffer_not_empty,
highlight = {colors.fg,colors.lightbg} highlight = {colors.fg,colors.lightbg}
} }
} }
gls.left[5] = { gls.left[5] = {
rightRounded = { teech = {
provider = function() return '' end, provider = function() return '' end,
separator = ' ',
highlight = { colors.lightbg, colors.bg } highlight = { colors.lightbg, colors.bg }
}, },
} }
gls.left[6] = { gls.left[6] = {
GitIcon = { GitIcon = {
provider = function() return '' end, provider = function() return '' end,
condition = require('galaxyline.provider_vcs').check_git_workspace, condition = require('galaxyline.provider_vcs').check_git_workspace,
highlight = {colors.fg,colors.line_bg}, highlight = {colors.red,colors.line_bg},
} }
} }
@ -78,7 +75,7 @@ gls.left[7] = {
GitBranch = { GitBranch = {
provider = 'GitBranch', provider = 'GitBranch',
condition = require('galaxyline.provider_vcs').check_git_workspace, condition = require('galaxyline.provider_vcs').check_git_workspace,
highlight = {'#8FBCBB',colors.line_bg,'bold'}, highlight = {colors.red,colors.line_bg,'bold'},
} }
} }
@ -90,16 +87,16 @@ local checkwidth = function()
return false return false
end end
gls.left[7] = { gls.left[8] = {
DiffAdd = { DiffAdd = {
provider = 'DiffAdd', provider = 'DiffAdd',
condition = checkwidth, condition = checkwidth,
icon = '', icon = '',
highlight = {colors.nordYel,colors.line_bg}, highlight = {colors.greenYel,colors.line_bg},
} }
} }
gls.left[8] = { gls.left[9] = {
DiffModified = { DiffModified = {
provider = 'DiffModified', provider = 'DiffModified',
condition = checkwidth, condition = checkwidth,
@ -108,7 +105,7 @@ gls.left[8] = {
} }
} }
gls.left[9] = { gls.left[10] = {
DiffRemove = { DiffRemove = {
provider = 'DiffRemove', provider = 'DiffRemove',
condition = checkwidth, condition = checkwidth,
@ -149,27 +146,34 @@ gls.left[13] = {
} }
} }
gls.right[1] = { gls.right[1] = {
uwu = { right_LeftRounded = {
provider = function() return '' end, provider = function() return '' end,
highlight = { colors.firored, colors.bg } highlight = { colors.nord, colors.bg }
}, },
} }
gls.right[2]= { gls.right[2]= {
FileFormat = { FileFormat = {
provider = 'FileFormat', provider = 'FileFormat',
highlight = {colors.bg,colors.firored}, highlight = {colors.bg,colors.nord},
} }
} }
gls.right[3] = { gls.right[3] = {
PerCent = { PerCent = {
provider = 'LinePercent', provider = 'LinePercent',
separator = ' ', separator = ' ',
separator_highlight = {colors.firored,colors.firored}, separator_highlight = {colors.nord,colors.nord},
highlight = {colors.bg,colors.fg}, highlight = {colors.bg,colors.fg},
} }
} }
gls.right[4] = {
rightRounded = {
provider = function() return '' end,
highlight = { colors.fg, colors.bg }
},
}