[UPDATED] Merged the default lazy vim config with bubbles and some customizations
This commit is contained in:
@@ -1,16 +1,26 @@
|
|||||||
return {
|
return {
|
||||||
{
|
"nvim-lualine/lualine.nvim",
|
||||||
'nvim-lualine/lualine.nvim',
|
event = "VeryLazy",
|
||||||
|
init = function()
|
||||||
|
vim.g.lualine_laststatus = vim.o.laststatus
|
||||||
|
if vim.fn.argc(-1) > 0 then
|
||||||
|
-- set an empty statusline till lualine loads
|
||||||
|
vim.o.statusline = " "
|
||||||
|
else
|
||||||
|
-- hide the statusline on the starter page
|
||||||
|
vim.o.laststatus = 0
|
||||||
|
end
|
||||||
|
end,
|
||||||
opts = function()
|
opts = function()
|
||||||
-- Colors and theme setup
|
-- Colors and theme setup
|
||||||
local colors = {
|
local colors = {
|
||||||
blue = '#80a0ff',
|
blue = "#80a0ff",
|
||||||
cyan = '#79dac8',
|
cyan = "#79dac8",
|
||||||
black = '#080808',
|
black = "#080808",
|
||||||
white = '#c6c6c6',
|
white = "#c6c6c6",
|
||||||
red = '#ff5189',
|
red = "#ff5189",
|
||||||
violet = '#d183e8',
|
violet = "#d183e8",
|
||||||
grey = '#303030',
|
grey = "#303030",
|
||||||
}
|
}
|
||||||
|
|
||||||
local bubbles_theme = {
|
local bubbles_theme = {
|
||||||
@@ -29,41 +39,87 @@ return {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local icons = LazyVim.config.icons
|
||||||
|
|
||||||
|
vim.o.laststatus = vim.g.lualine_laststatus
|
||||||
|
|
||||||
return {
|
return {
|
||||||
options = {
|
options = {
|
||||||
theme = bubbles_theme,
|
theme = bubbles_theme,
|
||||||
component_separators = '',
|
globalstatus = vim.o.laststatus == 3,
|
||||||
section_separators = { left = '', right = '' },
|
disabled_filetypes = { statusline = { "dashboard", "alpha", "ministarter" } },
|
||||||
|
component_separators = "",
|
||||||
|
section_separators = { left = "", right = "" },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { { 'mode', separator = { left = '' }, right_padding = 2 } },
|
lualine_a = {
|
||||||
lualine_b = { 'branch', 'diagnostics' },
|
{ "mode", separator = { left = "" }, right_padding = 2 },
|
||||||
lualine_c = {
|
|
||||||
'%=', { 'filename', path = 1 }
|
|
||||||
},
|
|
||||||
lualine_x = {},
|
|
||||||
lualine_y = {
|
|
||||||
{
|
{
|
||||||
'diff',
|
function()
|
||||||
colored = true,
|
return require("noice").api.status.command.get()
|
||||||
symbols = { added = ' ', modified = '✏️ ', removed = ' ' }
|
end,
|
||||||
|
cond = function()
|
||||||
|
return package.loaded["noice"] and require("noice").api.status.command.has()
|
||||||
|
end,
|
||||||
|
color = { colors.black },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lualine_b = {
|
||||||
|
"branch",
|
||||||
|
{
|
||||||
|
"diagnostics",
|
||||||
|
symbols = {
|
||||||
|
error = icons.diagnostics.Error,
|
||||||
|
warn = icons.diagnostics.Warn,
|
||||||
|
info = icons.diagnostics.Info,
|
||||||
|
hint = icons.diagnostics.Hint,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lualine_c = {
|
||||||
|
"%=",
|
||||||
|
{ "filetype", icon_only = true, padding = { 0 } },
|
||||||
|
{ "filename", path = 1 },
|
||||||
|
{ "filetype", icon_only = true, padding = { 0 } },
|
||||||
|
},
|
||||||
|
lualine_x = {
|
||||||
|
{
|
||||||
|
"diff",
|
||||||
|
symbols = {
|
||||||
|
added = icons.git.added,
|
||||||
|
modified = icons.git.modified,
|
||||||
|
removed = icons.git.removed,
|
||||||
|
},
|
||||||
|
source = function()
|
||||||
|
local gitsigns = vim.b.gitsigns_status_dict
|
||||||
|
if gitsigns then
|
||||||
|
return {
|
||||||
|
added = gitsigns.added,
|
||||||
|
modified = gitsigns.changed,
|
||||||
|
removed = gitsigns.removed,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lualine_y = {
|
||||||
|
"encoding",
|
||||||
|
"progress",
|
||||||
},
|
},
|
||||||
'encoding', 'filetype', 'progress' },
|
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
{ 'location', separator = { right = '' }, left_padding = 2 },
|
{ "location", separator = { right = "" }, left_padding = 2 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = { 'filename' },
|
lualine_a = { "filename" },
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = {},
|
lualine_c = {},
|
||||||
lualine_x = {},
|
lualine_x = {},
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = { 'location' },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
tabline = {},
|
tabline = {},
|
||||||
extensions = {},
|
extensions = { "neo-tree", "lazy" },
|
||||||
}
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user