Plugin update
This commit is contained in:
@@ -3,6 +3,7 @@ return {
|
|||||||
"utilyre/barbecue.nvim",
|
"utilyre/barbecue.nvim",
|
||||||
name = "barbecue",
|
name = "barbecue",
|
||||||
version = "*",
|
version = "*",
|
||||||
|
enabled = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"SmiteshP/nvim-navic",
|
"SmiteshP/nvim-navic",
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
|||||||
@@ -70,16 +70,18 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if upgrades_available then
|
-- if upgrades_available then
|
||||||
return packages_outdated
|
-- return packages_outdated
|
||||||
else
|
-- else
|
||||||
return 0
|
-- return 0
|
||||||
end
|
-- end
|
||||||
|
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local mode = {
|
local mode = {
|
||||||
"mode",
|
"mode",
|
||||||
separator = { left = "" },
|
separator = { left = "", right = "" },
|
||||||
right_padding = 2,
|
right_padding = 2,
|
||||||
color = function()
|
color = function()
|
||||||
return { bg = mode_color[vim.fn.mode()], fg = colors.bg }
|
return { bg = mode_color[vim.fn.mode()], fg = colors.bg }
|
||||||
@@ -87,12 +89,12 @@ return {
|
|||||||
}
|
}
|
||||||
local filename = {
|
local filename = {
|
||||||
"filename",
|
"filename",
|
||||||
color = { fg = colors.magenta, gui = "bold" },
|
color = { fg = colors.magenta, bg = "None", gui = "bold" },
|
||||||
}
|
}
|
||||||
local branch = {
|
local branch = {
|
||||||
"branch",
|
"branch",
|
||||||
icon = "",
|
icon = "",
|
||||||
color = { fg = colors.violet, gui = "bold" },
|
color = { fg = colors.violet, bg = "None", gui = "bold" },
|
||||||
on_click = function()
|
on_click = function()
|
||||||
vim.cmd("Neogit")
|
vim.cmd("Neogit")
|
||||||
end,
|
end,
|
||||||
@@ -102,40 +104,54 @@ return {
|
|||||||
sources = { "nvim_diagnostic" },
|
sources = { "nvim_diagnostic" },
|
||||||
symbols = { error = " ", warn = " ", info = " " },
|
symbols = { error = " ", warn = " ", info = " " },
|
||||||
diagnostics_color = {
|
diagnostics_color = {
|
||||||
color_error = { fg = colors.red },
|
color_error = { fg = colors.red, bg = "None", gui = "bold" },
|
||||||
color_warn = { fg = colors.yellow },
|
color_warn = { fg = colors.yellow, bg = "None", gui = "bold" },
|
||||||
color_info = { fg = colors.cyan },
|
color_info = { fg = colors.cyan, bg = "None", gui = "bold" },
|
||||||
},
|
},
|
||||||
|
color = { bg = mode, gui = "bold" },
|
||||||
}
|
}
|
||||||
local harpoon = {
|
local harpoon = {
|
||||||
"harpoon2",
|
"harpoon2",
|
||||||
indicators = { "1", "2", "3", "4" },
|
indicators = { "1", "2", "3", "4" },
|
||||||
active_indicators = { "[1]", "[2]", "[3]", "[4]" },
|
active_indicators = { "[1]", "[2]", "[3]", "[4]" },
|
||||||
separator = " ",
|
separator = " ",
|
||||||
|
color = { bg = "None", gui = "bold" },
|
||||||
}
|
}
|
||||||
local copilot = {
|
local copilot = {
|
||||||
"copilot",
|
"copilot",
|
||||||
|
symbols = {
|
||||||
|
status = {
|
||||||
|
hl = {
|
||||||
|
enabled = colors.green,
|
||||||
|
sleep = colors.yellow,
|
||||||
|
disabled = colors.bg,
|
||||||
|
warning = colors.orange,
|
||||||
|
unknown = colors.red,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
show_colors = true,
|
show_colors = true,
|
||||||
|
color = { bg = "None", gui = "bold" },
|
||||||
}
|
}
|
||||||
local diff = {
|
local diff = {
|
||||||
"diff",
|
"diff",
|
||||||
symbols = { added = " ", modified = " ", removed = " " },
|
symbols = { added = " ", modified = " ", removed = " " },
|
||||||
diff_color = {
|
diff_color = {
|
||||||
added = { fg = colors.green },
|
added = { fg = colors.green, bg = "None" },
|
||||||
modified = { fg = colors.orange },
|
modified = { fg = colors.orange, bg = "None" },
|
||||||
removed = { fg = colors.red },
|
removed = { fg = colors.red, bg = "None" },
|
||||||
},
|
},
|
||||||
cond = conditions.hide_in_width,
|
cond = conditions.hide_in_width,
|
||||||
}
|
}
|
||||||
local fileformat = {
|
local fileformat = {
|
||||||
"fileformat",
|
"fileformat",
|
||||||
fmt = string.upper,
|
fmt = string.upper,
|
||||||
color = { fg = colors.green, gui = "bold" },
|
color = { fg = colors.green, bg = "None", gui = "bold" },
|
||||||
}
|
}
|
||||||
local lazy = {
|
local lazy = {
|
||||||
require("lazy.status").updates,
|
require("lazy.status").updates,
|
||||||
cond = require("lazy.status").has_updates,
|
cond = require("lazy.status").has_updates,
|
||||||
color = { fg = colors.violet },
|
color = { fg = colors.violet, bg = "None" },
|
||||||
on_click = function()
|
on_click = function()
|
||||||
local confirmation = vim.ui.select({ "Yes", "No" }, { prompt = "Update plugins?" }, function(choice)
|
local confirmation = vim.ui.select({ "Yes", "No" }, { prompt = "Update plugins?" }, function(choice)
|
||||||
if choice == "Yes" then
|
if choice == "Yes" then
|
||||||
@@ -148,7 +164,7 @@ return {
|
|||||||
}
|
}
|
||||||
local mason = {
|
local mason = {
|
||||||
mason_updates() .. "",
|
mason_updates() .. "",
|
||||||
color = { fg = colors.violet },
|
color = { fg = colors.violet, bg = "None" },
|
||||||
cond = function()
|
cond = function()
|
||||||
return mason_updates() > 0
|
return mason_updates() > 0
|
||||||
end,
|
end,
|
||||||
@@ -159,30 +175,34 @@ return {
|
|||||||
}
|
}
|
||||||
local filetype = {
|
local filetype = {
|
||||||
"filetype",
|
"filetype",
|
||||||
color = { fg = colors.darkblue },
|
color = { fg = colors.darkblue, bg = "None" },
|
||||||
}
|
}
|
||||||
local progress = {
|
local progress = {
|
||||||
"progress",
|
"progress",
|
||||||
color = { fg = colors.magenta },
|
color = { fg = colors.magenta, bg = "None" },
|
||||||
}
|
}
|
||||||
local location = {
|
local location = {
|
||||||
"location",
|
"location",
|
||||||
separator = { right = "" },
|
separator = { left = "", right = "" },
|
||||||
left_padding = 2,
|
left_padding = 2,
|
||||||
color = function()
|
color = function()
|
||||||
return { bg = mode_color[vim.fn.mode()], fg = colors.bg }
|
return { bg = mode_color[vim.fn.mode()], fg = colors.bg }
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
local sep = {
|
||||||
|
"%=",
|
||||||
|
color = { fg = colors.bg, bg = "None" },
|
||||||
|
}
|
||||||
|
|
||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
component_separators = "",
|
component_separators = "",
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
lualine_b = { filename, branch },
|
lualine_b = { filename, branch },
|
||||||
lualine_c = { diagnostics, "%=", harpoon },
|
lualine_c = { diagnostics, sep, harpoon },
|
||||||
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
lualine_x = { copilot, diff, fileformat, lazy, mason },
|
||||||
lualine_y = { filetype, progress },
|
lualine_y = { filetype, progress },
|
||||||
lualine_z = { location },
|
lualine_z = { location },
|
||||||
|
|||||||
@@ -32,19 +32,19 @@ return {
|
|||||||
},
|
},
|
||||||
extra_groups = {
|
extra_groups = {
|
||||||
"NormalSB",
|
"NormalSB",
|
||||||
"barbecue_normal",
|
|
||||||
-- "NvimTreeNormal",
|
|
||||||
-- "NvimTreeNormalNC",
|
|
||||||
-- "NvimTreeNormalSB",
|
|
||||||
"Folded",
|
"Folded",
|
||||||
"NonText",
|
"NonText",
|
||||||
"SpecialKey",
|
"SpecialKey",
|
||||||
"VertSplit",
|
"VertSplit",
|
||||||
"EndOfBuffer",
|
"EndOfBuffer",
|
||||||
"SignColumn",
|
"SignColumn",
|
||||||
|
-- "barbecue_normal",
|
||||||
-- "BufferLineFill",
|
-- "BufferLineFill",
|
||||||
-- "BufferLineBackground",
|
-- "BufferLineBackground",
|
||||||
-- "BufferLineBufferSelected",
|
-- "BufferLineBufferSelected",
|
||||||
|
-- "NvimTreeNormal",
|
||||||
|
-- "NvimTreeNormalNC",
|
||||||
|
-- "NvimTreeNormalSB",
|
||||||
},
|
},
|
||||||
exclude_groups = {},
|
exclude_groups = {},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user