aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/loader.lua
Commit message (Collapse)AuthorAge
* feat(lua): vim.tbl_contains supports general tables and predicates (#23040)Christian Clason2023-04-14
| | | | | | | | | | | | * feat(lua): vim.tbl_contains supports general tables and predicates Problem: `vim.tbl_contains` only works for list-like tables (integer keys without gaps) and primitive values (in particular, not for nested tables). Solution: Rename `vim.tbl_contains` to `vim.list_contains` and add new `vim.tbl_contains` that works for general tables and optionally allows `value` to be a predicate function that is checked for every key.
* fix(loader): reset hashes when running the loaderLewis Russell2023-04-13
|
* docs: fix typosdundargoc2023-04-04
| | | | | | Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com> Co-authored-by: himanoa <matsunoappy@gmail.com>
* refactor(loader): cache hash informationLewis Russell2023-03-31
| | | | | | | | | | | Whenever we run fs_stat() on a path, save this information in the loader so it can be re-used. - Loader.loadfile: Remove arguments `hash` as it is no longer needed. - Loader.loader: Use _G.loadstring instead of Loader.load This allows plugins to wrap loadstring to inspection and profiling - factor out read file logic
* fix(loader): disable profiling by defaultLewis Russell2023-03-31
|
* refactor(loader): simplify tracking logicLewis Russell2023-03-26
|
* feat(vim.fs): improve normalizeLewis Russell2023-03-26
| | | | | | - Add options argument with an option to expand env vars - Resolve '//' -> '/' - Use in vim.loader
* refactor(loader): add typing for package.loadersLewis Russell2023-03-26
|
* refactor(loader): remove BufWritePost autocmdLewis Russell2023-03-26
|
* refactor(loader): use vim.fsLewis Russell2023-03-26
|
* feat(lua): add `vim.loader`Folke Lemaitre2023-03-26
feat: new faster lua loader using byte-compilation