@@ -38,7 +38,7 @@ You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim**
38
38
39
39
``` lua
40
40
local lazypath = vim .fn .stdpath (" data" ) .. " /lazy/lazy.nvim"
41
- if not vim .loop .fs_stat (lazypath ) then
41
+ if not vim .uv .fs_stat (lazypath ) then
42
42
vim .fn .system ({
43
43
" git" ,
44
44
" clone" ,
@@ -308,11 +308,12 @@ return {
308
308
-- leave nil when passing the spec as the first argument to setup()
309
309
spec = nil , --- @type LazySpec
310
310
lockfile = vim .fn .stdpath (" config" ) .. " /lazy-lock.json" , -- lockfile generated after running update.
311
- concurrency = jit .os :find (" Windows" ) and (vim .loop .available_parallelism () * 2 ) or nil , --- @type number limit the maximum amount of concurrent tasks
311
+ --- @type number ? limit the maximum amount of concurrent tasks
312
+ concurrency = jit .os :find (" Windows" ) and (vim .uv .available_parallelism () * 2 ) or nil ,
312
313
git = {
313
314
-- defaults for the `Lazy log` command
314
- -- log = { "-10 " }, -- show the last 10 commits
315
- log = { " -8" }, -- show commits from the last 3 days
315
+ -- log = { "--since=3 days ago " }, -- show commits from the last 3 days
316
+ log = { " -8" }, -- show the last 8 commits
316
317
timeout = 120 , -- kill processes that take more than 2 minutes
317
318
url_format = " https://github.com/%s.git" ,
318
319
-- lazy.nvim requires git >=2.19.0. If you really want to use lazy with an older version,
@@ -339,14 +340,16 @@ return {
339
340
wrap = true , -- wrap the lines in the ui
340
341
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
341
342
border = " none" ,
343
+ -- The backdrop opacity. 0 is fully opaque, 100 is fully transparent.
344
+ backdrop = 60 ,
342
345
title = nil , --- @type string only works when border is not " none"
343
346
title_pos = " center" , --- @type " center" | " left" | " right"
344
347
-- Show pills on top of the Lazy window
345
348
pills = true , --- @type boolean
346
349
icons = {
347
350
cmd = " " ,
348
351
config = " " ,
349
- event = " " ,
352
+ event = " " ,
350
353
ft = " " ,
351
354
init = " " ,
352
355
import = " " ,
@@ -358,7 +361,7 @@ return {
358
361
runtime = " " ,
359
362
require = " " ,
360
363
source = " " ,
361
- start = " " ,
364
+ start = " " ,
362
365
task = " ✔ " ,
363
366
list = {
364
367
" ●" ,
@@ -513,24 +516,24 @@ Any operation can be started from the UI, with a sub command or an API function:
513
516
514
517
<!-- commands:start -->
515
518
516
- | Command | Lua | Description |
517
- | ------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- --- |
518
- | ` :Lazy build {plugins} ` | ` require("lazy").build(opts) ` | Rebuild a plugin |
519
- | ` :Lazy check [plugins] ` | ` require("lazy").check(opts?) ` | Check for updates and show the log (git fetch) |
520
- | ` :Lazy clean [plugins] ` | ` require("lazy").clean(opts?) ` | Clean plugins that are no longer needed |
521
- | ` :Lazy clear ` | ` require("lazy").clear() ` | Clear finished tasks |
522
- | ` :Lazy debug ` | ` require("lazy").debug() ` | Show debug information |
523
- | ` :Lazy health ` | ` require("lazy").health() ` | Run ` :checkhealth lazy ` |
524
- | ` :Lazy help ` | ` require("lazy").help() ` | Toggle this help page |
525
- | ` :Lazy home ` | ` require("lazy").home() ` | Go back to plugin list |
526
- | ` :Lazy install [plugins] ` | ` require("lazy").install(opts?) ` | Install missing plugins |
527
- | ` :Lazy load {plugins} ` | ` require("lazy").load(opts) ` | Load a plugin that has not been loaded yet. Similar to ` :packadd ` . Like ` :Lazy load foo.nvim ` . Use ` :Lazy! load ` to skip ` cond ` checks. |
528
- | ` :Lazy log [plugins] ` | ` require("lazy").log(opts?) ` | Show recent updates |
529
- | ` :Lazy profile ` | ` require("lazy").profile() ` | Show detailed profiling |
530
- | ` :Lazy reload {plugins} ` | ` require("lazy").reload(opts) ` | Reload a plugin (experimental!!) |
519
+ | Command | Lua | Description |
520
+ | --- | --- | --- | --- |
521
+ | ` :Lazy build {plugins} ` | ` require("lazy").build(opts) ` | Rebuild a plugin |
522
+ | ` :Lazy check [plugins] ` | ` require("lazy").check(opts?) ` | Check for updates and show the log (git fetch) |
523
+ | ` :Lazy clean [plugins] ` | ` require("lazy").clean(opts?) ` | Clean plugins that are no longer needed |
524
+ | ` :Lazy clear ` | ` require("lazy").clear() ` | Clear finished tasks |
525
+ | ` :Lazy debug ` | ` require("lazy").debug() ` | Show debug information |
526
+ | ` :Lazy health ` | ` require("lazy").health() ` | Run ` :checkhealth lazy ` |
527
+ | ` :Lazy help ` | ` require("lazy").help() ` | Toggle this help page |
528
+ | ` :Lazy home ` | ` require("lazy").home() ` | Go back to plugin list |
529
+ | ` :Lazy install [plugins] ` | ` require("lazy").install(opts?) ` | Install missing plugins |
530
+ | ` :Lazy load {plugins} ` | ` require("lazy").load(opts) ` | Load a plugin that has not been loaded yet. Similar to ` :packadd ` . Like ` :Lazy load foo.nvim ` . Use ` :Lazy! load ` to skip ` cond ` checks. |
531
+ | ` :Lazy log [plugins] ` | ` require("lazy").log(opts?) ` | Show recent updates |
532
+ | ` :Lazy profile ` | ` require("lazy").profile() ` | Show detailed profiling |
533
+ | ` :Lazy reload {plugins} ` | ` require("lazy").reload(opts) ` | Reload a plugin (experimental!!) |
531
534
| ` :Lazy restore [plugins] ` | ` require("lazy").restore(opts?) ` | Updates all plugins to the state in the lockfile. For a single plugin: restore it to the state in the lockfile or to a given commit under the cursor |
532
- | ` :Lazy sync [plugins] ` | ` require("lazy").sync(opts?) ` | Run install, clean and update |
533
- | ` :Lazy update [plugins] ` | ` require("lazy").update(opts?) ` | Update plugins. This will also update the lockfile |
535
+ | ` :Lazy sync [plugins] ` | ` require("lazy").sync(opts?) ` | Run install, clean and update |
536
+ | ` :Lazy update [plugins] ` | ` require("lazy").update(opts?) ` | Update plugins. This will also update the lockfile |
534
537
535
538
<!-- commands:end -->
536
539
@@ -781,40 +784,40 @@ To uninstall **lazy.nvim**, you need to remove the following files and directori
781
784
782
785
<!-- colors:start -->
783
786
784
- | Highlight Group | Default Group | Description |
785
- | --------------------- | -------------------------- | ------------------------------------------------ --- |
786
- | ** LazyButton** | ** _ CursorLine _ ** | |
787
- | ** LazyButtonActive** | ** _ Visual _ ** | |
788
- | ** LazyComment** | ** _ Comment _ ** | |
789
- | ** LazyCommit** | ** _ @variable.builtin _ ** | commit ref |
790
- | ** LazyCommitIssue** | ** _ Number _ ** | |
791
- | ** LazyCommitScope** | ** _ Italic _ ** | conventional commit scope |
792
- | ** LazyCommitType** | ** _ Title _ ** | conventional commit type |
793
- | ** LazyDimmed** | ** _ Conceal _ ** | property |
794
- | ** LazyDir** | ** _ @markup.link _ ** | directory |
795
- | ** LazyH1** | ** _ IncSearch _ ** | home button |
796
- | ** LazyH2** | ** _ Bold _ ** | titles |
797
- | ** LazyLocal** | ** _ Constant _ ** | |
798
- | ** LazyNoCond** | ** _ DiagnosticWarn _ ** | unloaded icon for a plugin where ` cond() ` was false |
799
- | ** LazyNormal** | ** _ NormalFloat _ ** | |
800
- | ** LazyProgressDone** | ** _ Constant _ ** | progress bar done |
801
- | ** LazyProgressTodo** | ** _ LineNr _ ** | progress bar todo |
802
- | ** LazyProp** | ** _ Conceal _ ** | property |
803
- | ** LazyReasonCmd** | ** _ Operator _ ** | |
804
- | ** LazyReasonEvent** | ** _ Constant _ ** | |
805
- | ** LazyReasonFt** | ** _ Character _ ** | |
806
- | ** LazyReasonImport** | ** _ Identifier _ ** | |
807
- | ** LazyReasonKeys** | ** _ Statement _ ** | |
808
- | ** LazyReasonPlugin** | ** _ Special _ ** | |
809
- | ** LazyReasonRequire** | ** _ @variable.parameter _ ** | |
810
- | ** LazyReasonRuntime** | ** _ @macro _ ** | |
811
- | ** LazyReasonSource** | ** _ Character _ ** | |
812
- | ** LazyReasonStart** | ** _ @variable.member _ ** | |
813
- | ** LazySpecial** | ** _ @punctuation.special _ ** | |
814
- | ** LazyTaskError** | ** _ ErrorMsg _ ** | task errors |
815
- | ** LazyTaskOutput** | ** _ MsgArea _ ** | task output |
816
- | ** LazyUrl** | ** _ @markup.link _ ** | url |
817
- | ** LazyValue** | ** _ @string _ ** | value of a property |
787
+ | Highlight Group | Default Group | Description |
788
+ | --- | --- | --- |
789
+ | ** LazyButton** | *** CursorLine *** | |
790
+ | ** LazyButtonActive** | *** Visual *** | |
791
+ | ** LazyComment** | *** Comment *** | |
792
+ | ** LazyCommit** | *** @variable .builtin *** | commit ref |
793
+ | ** LazyCommitIssue** | *** Number *** | |
794
+ | ** LazyCommitScope** | *** Italic *** | conventional commit scope |
795
+ | ** LazyCommitType** | *** Title *** | conventional commit type |
796
+ | ** LazyDimmed** | *** Conceal *** | property |
797
+ | ** LazyDir** | *** @markup .link *** | directory |
798
+ | ** LazyH1** | *** IncSearch *** | home button |
799
+ | ** LazyH2** | *** Bold *** | titles |
800
+ | ** LazyLocal** | *** Constant *** | |
801
+ | ** LazyNoCond** | *** DiagnosticWarn *** | unloaded icon for a plugin where ` cond() ` was false |
802
+ | ** LazyNormal** | *** NormalFloat *** | |
803
+ | ** LazyProgressDone** | *** Constant *** | progress bar done |
804
+ | ** LazyProgressTodo** | *** LineNr *** | progress bar todo |
805
+ | ** LazyProp** | *** Conceal *** | property |
806
+ | ** LazyReasonCmd** | *** Operator *** | |
807
+ | ** LazyReasonEvent** | *** Constant *** | |
808
+ | ** LazyReasonFt** | *** Character *** | |
809
+ | ** LazyReasonImport** | *** Identifier *** | |
810
+ | ** LazyReasonKeys** | *** Statement *** | |
811
+ | ** LazyReasonPlugin** | *** Special *** | |
812
+ | ** LazyReasonRequire** | *** @variable .parameter *** | |
813
+ | ** LazyReasonRuntime** | *** @ macro *** | |
814
+ | ** LazyReasonSource** | *** Character *** | |
815
+ | ** LazyReasonStart** | *** @variable .member *** | |
816
+ | ** LazySpecial** | *** @punctuation .special *** | |
817
+ | ** LazyTaskError** | *** ErrorMsg *** | task errors |
818
+ | ** LazyTaskOutput** | *** MsgArea *** | task output |
819
+ | ** LazyUrl** | *** @markup .link *** | url |
820
+ | ** LazyValue** | *** @ string *** | value of a property |
818
821
819
822
<!-- colors:end -->
820
823
0 commit comments