Some tweaks
This commit is contained in:
@@ -22,11 +22,11 @@ return {
|
||||
red = "#f38ba8",
|
||||
}
|
||||
|
||||
local conditions = {
|
||||
hide_in_width = function()
|
||||
return vim.fn.winwidth(0) > 80
|
||||
end,
|
||||
}
|
||||
-- local conditions = {
|
||||
-- hide_in_width = function()
|
||||
-- return vim.fn.winwidth(0) > 80
|
||||
-- end,
|
||||
-- }
|
||||
|
||||
local mode_color = {
|
||||
n = colors.red,
|
||||
@@ -57,7 +57,7 @@ return {
|
||||
local installed_packages = registry.get_installed_package_names()
|
||||
local upgrades_available = false
|
||||
local packages_outdated = 0
|
||||
function myCallback(success, result_or_err)
|
||||
local function myCallback(success, _)
|
||||
if success then
|
||||
upgrades_available = true
|
||||
packages_outdated = packages_outdated + 1
|
||||
@@ -98,17 +98,17 @@ return {
|
||||
vim.cmd("Neogit")
|
||||
end,
|
||||
}
|
||||
local diagnostics = {
|
||||
"diagnostics",
|
||||
sources = { "nvim_diagnostic" },
|
||||
symbols = { error = " ", warn = " ", info = " " },
|
||||
diagnostics_color = {
|
||||
color_error = { fg = colors.red, bg = "None", gui = "bold" },
|
||||
color_warn = { fg = colors.yellow, bg = "None", gui = "bold" },
|
||||
color_info = { fg = colors.cyan, bg = "None", gui = "bold" },
|
||||
},
|
||||
color = { bg = mode, gui = "bold" },
|
||||
}
|
||||
-- local diagnostics = {
|
||||
-- "diagnostics",
|
||||
-- sources = { "nvim_diagnostic" },
|
||||
-- symbols = { error = " ", warn = " ", info = " " },
|
||||
-- diagnostics_color = {
|
||||
-- color_error = { fg = colors.red, bg = "None", gui = "bold" },
|
||||
-- color_warn = { fg = colors.yellow, bg = "None", gui = "bold" },
|
||||
-- color_info = { fg = colors.cyan, bg = "None", gui = "bold" },
|
||||
-- },
|
||||
-- color = { bg = mode, gui = "bold" },
|
||||
-- }
|
||||
local harpoon = {
|
||||
"harpoon2",
|
||||
icon = "",
|
||||
@@ -136,16 +136,16 @@ return {
|
||||
show_colors = true,
|
||||
color = { bg = "None", gui = "bold" },
|
||||
}
|
||||
local diff = {
|
||||
"diff",
|
||||
symbols = { added = " ", modified = " ", removed = " " },
|
||||
diff_color = {
|
||||
added = { fg = colors.green, bg = "None" },
|
||||
modified = { fg = colors.orange, bg = "None" },
|
||||
removed = { fg = colors.red, bg = "None" },
|
||||
},
|
||||
cond = conditions.hide_in_width,
|
||||
}
|
||||
-- local diff = {
|
||||
-- "diff",
|
||||
-- symbols = { added = " ", modified = " ", removed = " " },
|
||||
-- diff_color = {
|
||||
-- added = { fg = colors.green, bg = "None" },
|
||||
-- modified = { fg = colors.orange, bg = "None" },
|
||||
-- removed = { fg = colors.red, bg = "None" },
|
||||
-- },
|
||||
-- cond = conditions.hide_in_width,
|
||||
-- }
|
||||
local fileformat = {
|
||||
"fileformat",
|
||||
fmt = string.upper,
|
||||
@@ -160,7 +160,7 @@ return {
|
||||
if choice == "Yes" then
|
||||
vim.cmd("Lazy sync")
|
||||
else
|
||||
vim.notify("Update cancelled", "info", { title = "Lazy" })
|
||||
vim.notify("Update cancelled", vim.log.levels.INFO, { title = "Lazy" })
|
||||
end
|
||||
end)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user