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