mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 00:58:37 +00:00
Deploy PR #734 preview
This commit is contained in:
parent
05f79f47eb
commit
47708de24f
2 changed files with 14 additions and 2 deletions
|
@ -464,7 +464,19 @@ to find out more about the DAG system.</p></div>
|
|||
};
|
||||
};
|
||||
}
|
||||
</code></pre>
|
||||
</code></pre><div class="section"> <div class="titlepage"> <div> <div> <h4 id="sec-lazyfile-event" class="title" >LazyFile event </h4> </div> </div></div><p>You can use the <code class="literal">LazyFile</code> user event to load a plugin when a file is opened:</p><pre><code class="programlisting nix">{
|
||||
config.vim.lazy.plugins = {
|
||||
"aerial.nvim" = {
|
||||
package = pkgs.vimPlugins.aerial-nvim;
|
||||
event = [{event = "User"; pattern = "LazyFile";}];
|
||||
# ...
|
||||
};
|
||||
};
|
||||
}
|
||||
</code></pre><p>You can consider <code class="literal">LazyFile</code> as an alias to
|
||||
<code class="literal">["BufReadPost" "BufNewFile" "BufWritePre"]</code></p>
|
||||
</div>
|
||||
|
||||
</div><div class="section"> <div class="titlepage"> <div> <div> <h3 id="sec-non-lazy-method" class="title" >Non-lazy Method </h3> </div> </div></div><p>As of version <span class="strong"><strong>0.5</strong></span>, we have a more extensive API for configuring plugins,
|
||||
under <code class="literal">vim.extraPlugins</code>. Instead of using DAGs exposed by the library, you may
|
||||
use the extra plugin module as follows:</p><pre><code class="programlisting nix">{
|
||||
|
|
|
@ -21551,7 +21551,7 @@ null or string or list of string</p>
|
|||
<p>Lazy-load on event</p>
|
||||
|
||||
<p><span class="emphasis"><em>Type:</em></span>
|
||||
null or string or list of string or (submodule)</p>
|
||||
null or string or (submodule) or list of (string or (submodule))</p>
|
||||
|
||||
<p><span class="emphasis"><em>Default:</em></span>
|
||||
<code class="literal">null</code></p>
|
||||
|
|
Loading…
Add table
Reference in a new issue