You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
3.7 KiB
Lua

3 years ago
local gl = require('galaxyline')
local gls = gl.section
gl.short_line_list = {'LuaTree','vista','dbui'}
local colors = {
bg = '#282c34',
line_bg = '#282c34',
fg = '#D8DEE9',
fg_green = '#65a380',
yellow = '#A3BE8C',
cyan = '#22262C',
darkblue = '#61afef',
3 years ago
green = '#BBE67E',
3 years ago
orange = '#FF8800',
purple = '#252930',
magenta = '#c678dd',
blue = '#22262C';
3 years ago
red = '#DF8890',
3 years ago
lightbg = '#3C4048',
nord = '#81A1C1',
3 years ago
greenYel = '#EBCB8B'
3 years ago
}
3 years ago
gls.left[1] = {
3 years ago
leftRounded = {
3 years ago
provider = function() return '' end,
highlight = { colors.nord, colors.bg }
3 years ago
},
}
3 years ago
gls.left[2] = {
ViMode = {
provider = function()
3 years ago
return ''
3 years ago
end,
highlight = {colors.bg,colors.nord},
3 years ago
separator = ' ',
separator_highlight = {colors.lightbg,colors.lightbg},
},
}
gls.left[3] ={
FileIcon = {
provider = 'FileIcon',
condition = buffer_not_empty,
highlight = {require('galaxyline.provider_fileinfo').get_file_icon_color,colors.lightbg},
},
}
gls.left[4] = {
FileName = {
provider = {'FileName','FileSize'},
condition = buffer_not_empty,
highlight = {colors.fg,colors.lightbg}
}
}
gls.left[5] = {
3 years ago
teech = {
3 years ago
provider = function() return '' end,
3 years ago
separator = ' ',
3 years ago
highlight = { colors.lightbg, colors.bg }
},
}
3 years ago
local checkwidth = function()
local squeeze_width = vim.fn.winwidth(0) / 2
if squeeze_width > 40 then
return true
end
return false
end
gls.left[6] = {
3 years ago
DiffAdd = {
provider = 'DiffAdd',
condition = checkwidth,
icon = '',
3 years ago
highlight = {colors.greenYel,colors.line_bg},
3 years ago
}
}
gls.left[7] = {
3 years ago
DiffModified = {
provider = 'DiffModified',
condition = checkwidth,
icon = '',
highlight = {colors.orange,colors.line_bg},
}
}
gls.left[8] = {
3 years ago
DiffRemove = {
provider = 'DiffRemove',
condition = checkwidth,
icon = '',
highlight = {colors.red,colors.line_bg},
}
}
gls.left[9] = {
3 years ago
LeftEnd = {
provider = function() return ' ' end,
separator = ' ',
separator_highlight = {colors.line_bg,colors.line_bg},
highlight = {colors.line_bg,colors.line_bg}
}
}
gls.left[10] = {
3 years ago
DiagnosticError = {
provider = 'DiagnosticError',
icon = '',
highlight = {colors.red,colors.bg}
}
}
gls.left[11] = {
3 years ago
Space = {
provider = function () return ' ' end,
highlight = {colors.line_bg,colors.line_bg}
}
}
gls.left[12] = {
3 years ago
DiagnosticWarn = {
provider = 'DiagnosticWarn',
icon = '',
highlight = {colors.blue,colors.bg},
}
}
3 years ago
gls.right[1] = {
GitIcon = {
provider = function() return '' end,
condition = require('galaxyline.provider_vcs').check_git_workspace,
highlight = {colors.green,colors.line_bg},
}
}
gls.right[2] = {
GitBranch = {
provider = 'GitBranch',
condition = require('galaxyline.provider_vcs').check_git_workspace,
highlight = {colors.green,colors.line_bg},
}
}
gls.right[3] = {
3 years ago
right_LeftRounded = {
3 years ago
provider = function() return '' end,
separator = ' ',
separator_highlight = {colors.bg,colors.bg},
highlight = { colors.red, colors.bg }
3 years ago
},
}
gls.right[4] = {
SiMode = {
provider = function()
local alias = {
n = 'NORMAL',
i = 'INSERT',
c = 'COMMAND',
V = 'VISUAL',
[''] = 'VISUAL',
v = 'VISUAL',
R = 'REPLACE',
}
return alias[vim.fn.mode()]
end,
highlight = { colors.bg, colors.red },
},
3 years ago
}
3 years ago
gls.right[5] = {
3 years ago
PerCent = {
provider = 'LinePercent',
separator = ' ',
separator_highlight = {colors.red,colors.red},
3 years ago
highlight = {colors.bg,colors.fg},
}
}
3 years ago
gls.right[6] = {
3 years ago
rightRounded = {
provider = function() return '' end,
highlight = { colors.fg, colors.bg }
},
}