feat(startup): Source runtime/plugin/**/*.lua at startup

For opt plugins these files are sourced on `:packadd`

* `:runtime` Now can exexute lua files
This commit is contained in:
shadmansaleh
2021-05-31 17:35:13 +06:00
parent 1df8a34a7b
commit 687eb0b39f
7 changed files with 103 additions and 21 deletions

View File

@@ -878,6 +878,11 @@ function module.os_kill(pid)
or 'kill -9 '..pid..' > /dev/null'))
end
-- Create directories with non exsisting intermidiate directories
function module.mkdir_p(path)
return module.meths.call_function('mkdir', {path, 'p'})
end
module = global_helpers.tbl_extend('error', module, global_helpers)
return function(after_each)