Merge pull request #71 from horriblename/feat-lua-loader

feat: new option to enable lua module loader
This commit is contained in:
NotAShelf 2023-05-10 10:48:17 +03:00 committed by GitHub
commit f63e82c1c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View file

@ -144,5 +144,7 @@ with builtins; {
default = true;
description = "Follow editorconfig rules in current directory";
};
enableLuaLoader = mkEnableOption "Enable the experimental Lua module loader to speed up the start up process";
};
}

View file

@ -9,6 +9,9 @@ with builtins; let
wrapLuaConfig = luaConfig: ''
lua << EOF
${optionalString cfg.enableLuaLoader ''
vim.loader.enable()
''}
${luaConfig}
EOF
'';