mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-01 18:51:53 +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"];
|
startPlugins = ["lz-n" "lzn-auto-require"];
|
||||||
|
|
||||||
optPlugins = pluginPackages;
|
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 = ''
|
lazy.builtLazyConfig = ''
|
||||||
require('lz.n').load(${toLuaObject lznSpecs})
|
require('lz.n').load(${toLuaObject lznSpecs})
|
||||||
|
|
Loading…
Add table
Reference in a new issue