Tweak lualine
This commit is contained in:
parent
af233ae2ce
commit
79a46119a9
@ -1,76 +1,34 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-lualine/lualine.nvim',
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-tree/nvim-web-devicons',
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local lualine = require('lualine')
|
local lualine = require("lualine")
|
||||||
local lazy_status = require('lazy.status') -- to configure lazy pending updates count
|
local lazy_status = require("lazy.status") -- to configure lazy pending updates count
|
||||||
|
|
||||||
local colors = {
|
-- configure lualine with modified theme
|
||||||
blue = '#65D1FF',
|
lualine.setup({
|
||||||
green = '#3EFFDC',
|
options = {
|
||||||
violet = '#FF61EF',
|
theme = "onedark",
|
||||||
yellow = '#FFDA7B',
|
disabled_filetypes = {
|
||||||
red = '#FF4A4A',
|
statusline = { "NvimTree" },
|
||||||
fg = '#c3ccdc',
|
},
|
||||||
bg = '#112638',
|
section_separators = "",
|
||||||
inactive_bg = '#2c3043',
|
component_separators = "",
|
||||||
}
|
},
|
||||||
|
sections = {
|
||||||
local my_lualine_theme = {
|
lualine_x = {
|
||||||
normal = {
|
{
|
||||||
a = { bg = colors.blue, fg = colors.bg, gui = 'bold' },
|
lazy_status.updates,
|
||||||
b = { bg = colors.bg, fg = colors.fg },
|
cond = lazy_status.has_updates,
|
||||||
c = { bg = colors.bg, fg = colors.fg },
|
color = { fg = "#ff9e64" },
|
||||||
},
|
},
|
||||||
insert = {
|
{ "encoding" },
|
||||||
a = { bg = colors.green, fg = colors.bg, gui = 'bold' },
|
{ "fileformat" },
|
||||||
b = { bg = colors.bg, fg = colors.fg },
|
{ "filetype" },
|
||||||
c = { bg = colors.bg, fg = colors.fg },
|
},
|
||||||
},
|
},
|
||||||
visual = {
|
})
|
||||||
a = { bg = colors.violet, fg = colors.bg, gui = 'bold' },
|
end,
|
||||||
b = { bg = colors.bg, fg = colors.fg },
|
|
||||||
c = { bg = colors.bg, fg = colors.fg },
|
|
||||||
},
|
|
||||||
command = {
|
|
||||||
a = { bg = colors.yellow, fg = colors.bg, gui = 'bold' },
|
|
||||||
b = { bg = colors.bg, fg = colors.fg },
|
|
||||||
c = { bg = colors.bg, fg = colors.fg },
|
|
||||||
},
|
|
||||||
replace = {
|
|
||||||
a = { bg = colors.red, fg = colors.bg, gui = 'bold' },
|
|
||||||
b = { bg = colors.bg, fg = colors.fg },
|
|
||||||
c = { bg = colors.bg, fg = colors.fg },
|
|
||||||
},
|
|
||||||
inactive = {
|
|
||||||
a = { bg = colors.inactive_bg, fg = colors.semilightgray, gui = 'bold' },
|
|
||||||
b = { bg = colors.inactive_bg, fg = colors.semilightgray },
|
|
||||||
c = { bg = colors.inactive_bg, fg = colors.semilightgray },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- configure lualine with modified theme
|
|
||||||
lualine.setup({
|
|
||||||
options = {
|
|
||||||
theme = my_lualine_theme,
|
|
||||||
disabled_filetypes = {
|
|
||||||
statusline = { 'NvimTree' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
lualine_x = {
|
|
||||||
{
|
|
||||||
lazy_status.updates,
|
|
||||||
cond = lazy_status.has_updates,
|
|
||||||
color = { fg = '#ff9e64' },
|
|
||||||
},
|
|
||||||
{ 'encoding' },
|
|
||||||
{ 'fileformat' },
|
|
||||||
{ 'filetype' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user