better coc config
This commit is contained in:
parent
806d038ffb
commit
d70f67f96f
2 changed files with 194 additions and 37 deletions
|
@ -24,7 +24,7 @@ local colors = {
|
|||
gls.left[1] = {
|
||||
leftRounded = {
|
||||
provider = function() return '' end,
|
||||
highlight = { colors.green, colors.bg }
|
||||
highlight = { colors.nord, colors.bg }
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ gls.left[2] = {
|
|||
provider = function()
|
||||
return ' '
|
||||
end,
|
||||
highlight = {colors.bg,colors.green},
|
||||
highlight = {colors.bg,colors.nord},
|
||||
separator = ' ',
|
||||
separator_highlight = {colors.lightbg,colors.lightbg},
|
||||
},
|
||||
|
@ -63,22 +63,6 @@ gls.left[5] = {
|
|||
},
|
||||
}
|
||||
|
||||
gls.left[6] = {
|
||||
GitIcon = {
|
||||
provider = function() return ' ' end,
|
||||
condition = require('galaxyline.provider_vcs').check_git_workspace,
|
||||
highlight = {colors.red,colors.line_bg},
|
||||
}
|
||||
}
|
||||
|
||||
gls.left[7] = {
|
||||
GitBranch = {
|
||||
provider = 'GitBranch',
|
||||
condition = require('galaxyline.provider_vcs').check_git_workspace,
|
||||
highlight = {colors.red,colors.line_bg,'bold'},
|
||||
}
|
||||
}
|
||||
|
||||
local checkwidth = function()
|
||||
local squeeze_width = vim.fn.winwidth(0) / 2
|
||||
if squeeze_width > 40 then
|
||||
|
@ -87,7 +71,7 @@ local checkwidth = function()
|
|||
return false
|
||||
end
|
||||
|
||||
gls.left[8] = {
|
||||
gls.left[6] = {
|
||||
DiffAdd = {
|
||||
provider = 'DiffAdd',
|
||||
condition = checkwidth,
|
||||
|
@ -96,7 +80,7 @@ gls.left[8] = {
|
|||
}
|
||||
}
|
||||
|
||||
gls.left[9] = {
|
||||
gls.left[7] = {
|
||||
DiffModified = {
|
||||
provider = 'DiffModified',
|
||||
condition = checkwidth,
|
||||
|
@ -105,7 +89,7 @@ gls.left[9] = {
|
|||
}
|
||||
}
|
||||
|
||||
gls.left[10] = {
|
||||
gls.left[8] = {
|
||||
DiffRemove = {
|
||||
provider = 'DiffRemove',
|
||||
condition = checkwidth,
|
||||
|
@ -114,7 +98,7 @@ gls.left[10] = {
|
|||
}
|
||||
}
|
||||
|
||||
gls.left[10] = {
|
||||
gls.left[9] = {
|
||||
LeftEnd = {
|
||||
provider = function() return ' ' end,
|
||||
separator = ' ',
|
||||
|
@ -123,7 +107,7 @@ gls.left[10] = {
|
|||
}
|
||||
}
|
||||
|
||||
gls.left[11] = {
|
||||
gls.left[10] = {
|
||||
DiagnosticError = {
|
||||
provider = 'DiagnosticError',
|
||||
icon = ' ',
|
||||
|
@ -131,14 +115,14 @@ gls.left[11] = {
|
|||
}
|
||||
}
|
||||
|
||||
gls.left[12] = {
|
||||
gls.left[11] = {
|
||||
Space = {
|
||||
provider = function () return ' ' end,
|
||||
highlight = {colors.line_bg,colors.line_bg}
|
||||
}
|
||||
}
|
||||
|
||||
gls.left[13] = {
|
||||
gls.left[12] = {
|
||||
DiagnosticWarn = {
|
||||
provider = 'DiagnosticWarn',
|
||||
icon = ' ',
|
||||
|
@ -147,31 +131,59 @@ gls.left[13] = {
|
|||
}
|
||||
|
||||
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] = {
|
||||
right_LeftRounded = {
|
||||
provider = function() return '' end,
|
||||
highlight = { colors.nord, colors.bg }
|
||||
separator = ' ',
|
||||
separator_highlight = {colors.bg,colors.bg},
|
||||
highlight = { colors.red, colors.bg }
|
||||
},
|
||||
}
|
||||
|
||||
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 },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
gls.right[2]= {
|
||||
FileFormat = {
|
||||
provider = 'FileFormat',
|
||||
highlight = {colors.bg,colors.nord},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
gls.right[3] = {
|
||||
gls.right[5] = {
|
||||
PerCent = {
|
||||
provider = 'LinePercent',
|
||||
separator = ' ',
|
||||
separator_highlight = {colors.nord,colors.nord},
|
||||
separator_highlight = {colors.red,colors.red},
|
||||
highlight = {colors.bg,colors.fg},
|
||||
}
|
||||
}
|
||||
|
||||
gls.right[4] = {
|
||||
gls.right[6] = {
|
||||
rightRounded = {
|
||||
provider = function() return '' end,
|
||||
highlight = { colors.fg, colors.bg }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue