change lualine
This commit is contained in:
@ -53,6 +53,7 @@ colors = {
|
||||
green = '#98C379',
|
||||
blue = '#61AFEF',
|
||||
purple = '#C678DD',
|
||||
pink = '#704A5A',
|
||||
}
|
||||
|
||||
lspicons = {
|
||||
|
@ -2,7 +2,7 @@ local custom = require'lualine.themes.auto'
|
||||
|
||||
custom.normal = {
|
||||
a = { fg = colors.black, bg = colors.blue, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.blue, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.blue, bg = colors.black2 },
|
||||
@ -10,7 +10,7 @@ custom.normal = {
|
||||
}
|
||||
custom.insert = {
|
||||
a = { fg = colors.black, bg = colors.green, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.green, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.green, bg = colors.black2 },
|
||||
@ -18,7 +18,7 @@ custom.insert = {
|
||||
}
|
||||
custom.replace = {
|
||||
a = { fg = colors.black, bg = colors.orange, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.orange, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.orange, bg = colors.black2 },
|
||||
@ -26,7 +26,7 @@ custom.replace = {
|
||||
}
|
||||
custom.visual = {
|
||||
a = { fg = colors.black, bg = colors.purple, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.purple, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.purple, bg = colors.black2 },
|
||||
@ -34,7 +34,7 @@ custom.visual = {
|
||||
}
|
||||
custom.command = {
|
||||
a = { fg = colors.black, bg = colors.red, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.red, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.red, bg = colors.black2 },
|
||||
@ -42,19 +42,19 @@ custom.command = {
|
||||
}
|
||||
custom.terminal = {
|
||||
a = { fg = colors.black, bg = colors.yellow, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.yellow, gui = 'bold' },
|
||||
b = { fg = colors.black, bg = colors.grey, gui = 'bold' },
|
||||
c = { fg = colors.white, bg = colors.grey },
|
||||
x = {},
|
||||
y = { fg = colors.yellow, bg = colors.black2 },
|
||||
z = { fg = colors.black2, bg = colors.yellow, gui = 'bold' },
|
||||
}
|
||||
custom.inactive = {
|
||||
a = { bg = colors.grey },
|
||||
b = { bg = colors.grey },
|
||||
c = { bg = colors.grey },
|
||||
x = { bg = colors.grey },
|
||||
y = { bg = colors.grey },
|
||||
z = { bg = colors.grey },
|
||||
a = { bg = colors.black2 },
|
||||
b = { bg = colors.black2 },
|
||||
c = { bg = colors.black2 },
|
||||
x = { bg = colors.black2 },
|
||||
y = { bg = colors.black2 },
|
||||
z = { bg = colors.black2 },
|
||||
}
|
||||
|
||||
local function diff_source()
|
||||
@ -112,12 +112,23 @@ require('lualine').setup {
|
||||
}
|
||||
}
|
||||
},
|
||||
lualine_b = {},
|
||||
lualine_c = {
|
||||
lualine_b = {
|
||||
{ 'diff',
|
||||
source = diff_source,
|
||||
},
|
||||
{ 'diagnostics',
|
||||
sources = {'nvim_diagnostic', 'nvim_lsp'},
|
||||
sections = {'error', 'warn', 'info', 'hint'},
|
||||
diagnostics_color = {
|
||||
error = 'DiagnosticError',
|
||||
warn = 'DiagnosticWarn',
|
||||
info = 'DiagnosticInfo',
|
||||
hint = 'DiagnosticHint',
|
||||
},
|
||||
symbols = {error = '[x]', warn = '[!]', info = '[i]', hint = '[?]'},
|
||||
}
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
{ 'fileformat',
|
||||
color = { gui = 'bold' }
|
||||
|
Reference in New Issue
Block a user