From 47708de24f7c6815699d14b4ad4ef437be867d72 Mon Sep 17 00:00:00 2001
From: GitHub Actions
You can use the LazyFile user event to load a plugin when a file is opened:
{
+ config.vim.lazy.plugins = {
+ "aerial.nvim" = {
+ package = pkgs.vimPlugins.aerial-nvim;
+ event = [{event = "User"; pattern = "LazyFile";}];
+ # ...
+ };
+ };
+}
+You can consider LazyFile as an alias to
+["BufReadPost" "BufNewFile" "BufWritePre"]
As of version 0.5, we have a more extensive API for configuring plugins,
under vim.extraPlugins. Instead of using DAGs exposed by the library, you may
use the extra plugin module as follows:
{
diff --git a/docs-preview-734/options.html b/docs-preview-734/options.html
index 07b6c0b2..8a5ad99e 100644
--- a/docs-preview-734/options.html
+++ b/docs-preview-734/options.html
@@ -21551,7 +21551,7 @@ null or string or list of string
Lazy-load on event
Type:
-null or string or list of string or (submodule)
+null or string or (submodule) or list of (string or (submodule))
Default:
null