aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/loader.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2026-01-08 11:39:13 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2026-01-10 17:47:16 +0200
commit4a637107d071a63d3f2832e57940d8369d94e973 (patch)
tree5925fed4eb27663cf6853ad773695dae9cfe4d7a /runtime/lua/vim/loader.lua
parent14003bd1c56322b1095e3cda44fdd78aec54ff27 (diff)
downloadrneovim-4a637107d071a63d3f2832e57940d8369d94e973.tar.gz
rneovim-4a637107d071a63d3f2832e57940d8369d94e973.tar.bz2
rneovim-4a637107d071a63d3f2832e57940d8369d94e973.zip
feat(pack): add checkhealth
Problem: No `:checkhealth` entry. Solution: Add `:checkhealth vim.pack`. Design it around validating assumptions about `vim.pack` usage and giving actionable advice to fix possible issues. In particular: - Basic requirements are met: `git` executable, lockfile, and plugin directory are present. - Lockfile has correct shape (json with correct field types) and aligns with plugins on disk (revision and source are as expected). - Plugin directory has proper entries: all directories, in the state that `vim.pack` might leave them. Also notify if there are not active plugins. Those might be lazy loaded (okay) or removed an entry from the config without `vim.pack.del()` (not okay). Make sure that it passes with brief feedback if it doesn't look like `vim.pack` is being used. Duplicate check for `git` executable (on top of already existing very similar 'health/health.lua' check for "External tools") to have it shown after `:checkhealth vim.pack`. Keep the other check for more exposure and possibly for other plugins to reuse it.
Diffstat (limited to 'runtime/lua/vim/loader.lua')
0 files changed, 0 insertions, 0 deletions