diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-01-27 09:19:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-27 09:19:46 -0500 |
| commit | c2ecc9ca41a95b1644cae183fd19ce49ce10f980 (patch) | |
| tree | 42e1a3938c6e7559cfe7ac2097af6cd473e78c0a /runtime/lua/vim/pack.lua | |
| parent | dfa5d79d05d82aeedc7c19f9b670f31e01e3aea0 (diff) | |
| parent | 4a637107d071a63d3f2832e57940d8369d94e973 (diff) | |
| download | rneovim-c2ecc9ca41a95b1644cae183fd19ce49ce10f980.tar.gz rneovim-c2ecc9ca41a95b1644cae183fd19ce49ce10f980.tar.bz2 rneovim-c2ecc9ca41a95b1644cae183fd19ce49ce10f980.zip | |
Merge #37309 :checkhealth vim.pack
Diffstat (limited to 'runtime/lua/vim/pack.lua')
| -rw-r--r-- | runtime/lua/vim/pack.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua index 8ce951bde6..780e5f278a 100644 --- a/runtime/lua/vim/pack.lua +++ b/runtime/lua/vim/pack.lua @@ -842,9 +842,13 @@ local function lock_sync(confirm) end -- Compute installed plugins + local plug_dir = get_plug_dir() + if vim.uv.fs_stat(plug_dir) == nil then + vim.fn.mkdir(plug_dir, 'p') + end + -- NOTE: The directory traversal is done on every startup, but it is very fast. -- Also, single `vim.fs.dir()` scales better than on demand `uv.fs_stat()` checks. - local plug_dir = get_plug_dir() local installed = {} --- @type table<string,string> for name, fs_type in vim.fs.dir(plug_dir) do installed[name] = fs_type |