From d827d8a402bad3ef9809eece23f10caf8468dd84 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 19 Dec 2022 19:15:46 +0100 Subject: [PATCH] docs: collapse semver examples --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 18808d3..3c72080 100644 --- a/README.md +++ b/README.md @@ -107,11 +107,11 @@ specify `module=...` everywhere in your plugin specification. This mean that if you have a plugin `A` that is lazy-loaded and a plugin `B` that requires a module of plugin `A`, then plugin `A` will be loaded on demand as expected. -You can configure **lazy.nvim** to lazy-load all plugins by default with `config.defaults.lazy = true`. - If you don't want this behavior for a certain plugin, you can specify that with `module=false`. You can then manually load the plugin with `:Lazy load foobar.nvim`. +You can configure **lazy.nvim** to lazy-load all plugins by default with `config.defaults.lazy = true`. + Additionally, you can also lazy-load on **events**, **commands**, **file types** and **key mappings**. @@ -127,7 +127,10 @@ Plugins will be lazy-loaded when one of the following is `true`: If you want to install a specific revision of a plugin, you can use `commit`, `tag`, `branch`, `version`. -The `version` property supports [Semver](https://semver.org/) ranges: +The `version` property supports [Semver](https://semver.org/) ranges. + +
+Click to see some examples - `*`: latest stable version (this excludes pre-release versions) - `1.2.x`: any version that starts with `1.2`, such as `1.2.0`, `1.2.3`, etc. @@ -138,8 +141,10 @@ The `version` property supports [Semver](https://semver.org/) ranges: - `<1.2.3`: any version that is less than `1.2.3`, such as `1.1.0`, `1.0.5`, etc. - `<=1.2.3`: any version that is less than or equal to `1.2.3`, such as `1.2.3`, `1.1.0`, `1.0.5`, etc -> You can set `config.defaults.version = "*"` to install the latest stable -> version of plugins that support Semver. +
+ +You can set `config.defaults.version = "*"` to install the latest stable +version of plugins that support Semver. ### Examples