[UPDATED] stop inti error in lualine
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
local colors = {
|
||||
return {
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
opts = function()
|
||||
-- Colors and theme setup
|
||||
local colors = {
|
||||
blue = '#80a0ff',
|
||||
cyan = '#79dac8',
|
||||
black = '#080808',
|
||||
@@ -6,27 +11,25 @@ local colors = {
|
||||
red = '#ff5189',
|
||||
violet = '#d183e8',
|
||||
grey = '#303030',
|
||||
}
|
||||
}
|
||||
|
||||
local bubbles_theme = {
|
||||
local bubbles_theme = {
|
||||
normal = {
|
||||
a = { fg = colors.black, bg = colors.violet },
|
||||
b = { fg = colors.white, bg = colors.grey },
|
||||
c = { fg = colors.white },
|
||||
},
|
||||
|
||||
insert = { a = { fg = colors.black, bg = colors.blue } },
|
||||
visual = { a = { fg = colors.black, bg = colors.cyan } },
|
||||
replace = { a = { fg = colors.black, bg = colors.red } },
|
||||
|
||||
inactive = {
|
||||
a = { fg = colors.white, bg = colors.black },
|
||||
b = { fg = colors.white, bg = colors.black },
|
||||
c = { fg = colors.white },
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
require('lualine').setup {
|
||||
return {
|
||||
options = {
|
||||
theme = bubbles_theme,
|
||||
component_separators = '',
|
||||
@@ -36,15 +39,14 @@ require('lualine').setup {
|
||||
lualine_a = { { 'mode', separator = { left = '' }, right_padding = 2 } },
|
||||
lualine_b = { 'branch', 'diagnostics' },
|
||||
lualine_c = {
|
||||
'%=', {'filename', path = 1}
|
||||
'%=', { 'filename', path = 1 }
|
||||
},
|
||||
|
||||
lualine_x = {},
|
||||
lualine_y = {
|
||||
{
|
||||
'diff',
|
||||
colored = true,
|
||||
symbols = {added = ' ', modified = '✏️ ', removed = ' ' }
|
||||
symbols = { added = ' ', modified = '✏️ ', removed = ' ' }
|
||||
},
|
||||
'encoding', 'filetype', 'progress' },
|
||||
lualine_z = {
|
||||
@@ -61,4 +63,7 @@ require('lualine').setup {
|
||||
},
|
||||
tabline = {},
|
||||
extensions = {},
|
||||
}
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user