[UPDATED] stop inti error in lualine

This commit is contained in:
Daveanand Mannie
2024-10-26 14:26:41 -04:00
parent 2e938125ed
commit 44ab2631c0

View File

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