mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-03-30 18:01:52 +00:00
lazy: create LazyFile user event
This commit is contained in:
parent
58021beb1c
commit
e2d10e8fb2
1 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,15 @@ in {
|
|||
startPlugins = ["lz-n" "lzn-auto-require"];
|
||||
|
||||
optPlugins = pluginPackages;
|
||||
augroups = [{name = "nvf_lazy_file_hooks";}];
|
||||
autocmds = [
|
||||
{
|
||||
event = ["BufReadPost" "BufNewFile" "BufWritePre"];
|
||||
group = "nvf_lazy_file_hooks";
|
||||
command = "doautocmd User LazyFile";
|
||||
once = true;
|
||||
}
|
||||
];
|
||||
|
||||
lazy.builtLazyConfig = ''
|
||||
require('lz.n').load(${toLuaObject lznSpecs})
|
||||
|
|
Loading…
Add table
Reference in a new issue