change lualine
This commit is contained in:
@ -53,6 +53,7 @@ colors = {
|
|||||||
green = '#98C379',
|
green = '#98C379',
|
||||||
blue = '#61AFEF',
|
blue = '#61AFEF',
|
||||||
purple = '#C678DD',
|
purple = '#C678DD',
|
||||||
|
pink = '#704A5A',
|
||||||
}
|
}
|
||||||
|
|
||||||
lspicons = {
|
lspicons = {
|
||||||
|
@ -2,7 +2,7 @@ local custom = require'lualine.themes.auto'
|
|||||||
|
|
||||||
custom.normal = {
|
custom.normal = {
|
||||||
a = { fg = colors.black, bg = colors.blue, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.blue, bg = colors.black2 },
|
y = { fg = colors.blue, bg = colors.black2 },
|
||||||
@ -10,7 +10,7 @@ custom.normal = {
|
|||||||
}
|
}
|
||||||
custom.insert = {
|
custom.insert = {
|
||||||
a = { fg = colors.black, bg = colors.green, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.green, bg = colors.black2 },
|
y = { fg = colors.green, bg = colors.black2 },
|
||||||
@ -18,7 +18,7 @@ custom.insert = {
|
|||||||
}
|
}
|
||||||
custom.replace = {
|
custom.replace = {
|
||||||
a = { fg = colors.black, bg = colors.orange, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.orange, bg = colors.black2 },
|
y = { fg = colors.orange, bg = colors.black2 },
|
||||||
@ -26,7 +26,7 @@ custom.replace = {
|
|||||||
}
|
}
|
||||||
custom.visual = {
|
custom.visual = {
|
||||||
a = { fg = colors.black, bg = colors.purple, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.purple, bg = colors.black2 },
|
y = { fg = colors.purple, bg = colors.black2 },
|
||||||
@ -34,7 +34,7 @@ custom.visual = {
|
|||||||
}
|
}
|
||||||
custom.command = {
|
custom.command = {
|
||||||
a = { fg = colors.black, bg = colors.red, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.red, bg = colors.black2 },
|
y = { fg = colors.red, bg = colors.black2 },
|
||||||
@ -42,19 +42,19 @@ custom.command = {
|
|||||||
}
|
}
|
||||||
custom.terminal = {
|
custom.terminal = {
|
||||||
a = { fg = colors.black, bg = colors.yellow, gui = 'bold' },
|
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 },
|
c = { fg = colors.white, bg = colors.grey },
|
||||||
x = {},
|
x = {},
|
||||||
y = { fg = colors.yellow, bg = colors.black2 },
|
y = { fg = colors.yellow, bg = colors.black2 },
|
||||||
z = { fg = colors.black2, bg = colors.yellow, gui = 'bold' },
|
z = { fg = colors.black2, bg = colors.yellow, gui = 'bold' },
|
||||||
}
|
}
|
||||||
custom.inactive = {
|
custom.inactive = {
|
||||||
a = { bg = colors.grey },
|
a = { bg = colors.black2 },
|
||||||
b = { bg = colors.grey },
|
b = { bg = colors.black2 },
|
||||||
c = { bg = colors.grey },
|
c = { bg = colors.black2 },
|
||||||
x = { bg = colors.grey },
|
x = { bg = colors.black2 },
|
||||||
y = { bg = colors.grey },
|
y = { bg = colors.black2 },
|
||||||
z = { bg = colors.grey },
|
z = { bg = colors.black2 },
|
||||||
}
|
}
|
||||||
|
|
||||||
local function diff_source()
|
local function diff_source()
|
||||||
@ -112,12 +112,23 @@ require('lualine').setup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lualine_b = {},
|
lualine_b = {
|
||||||
lualine_c = {
|
|
||||||
{ 'diff',
|
{ 'diff',
|
||||||
source = diff_source,
|
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 = {
|
lualine_x = {
|
||||||
{ 'fileformat',
|
{ 'fileformat',
|
||||||
color = { gui = 'bold' }
|
color = { gui = 'bold' }
|
||||||
|
Reference in New Issue
Block a user