diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-29 09:43:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 09:43:49 -0800 |
commit | a060c13f55b775b2fafc741a571bb764e804d9db (patch) | |
tree | ff2d9478a9a4f0284ddcf98fbc037be3cbb4fe19 /runtime/lua/nvim | |
parent | 758504ec739b70c4e2f192feb106f101024bc862 (diff) | |
parent | e39b6d0c52410b59ad75312659ab278da42e42c6 (diff) | |
download | rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.gz rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.bz2 rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.zip |
Merge #27246 from justinmk/health
Diffstat (limited to 'runtime/lua/nvim')
-rw-r--r-- | runtime/lua/nvim/health.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua index 1a440c9827..0480e4df4e 100644 --- a/runtime/lua/nvim/health.lua +++ b/runtime/lua/nvim/health.lua @@ -23,9 +23,15 @@ local function check_runtime() health.start('Runtime') -- Files from an old installation. local bad_files = { + ['plugin/health.vim'] = false, + ['autoload/health/nvim.vim'] = false, + ['autoload/health/provider.vim'] = false, + ['autoload/man.vim'] = false, ['plugin/man.vim'] = false, + ['queries/help/highlights.scm'] = false, + ['queries/help/injections.scm'] = false, ['scripts.vim'] = false, - ['autoload/man.vim'] = false, + ['syntax/syncolor.vim'] = false, } local bad_files_msg = '' for k, _ in pairs(bad_files) do @@ -42,10 +48,10 @@ local function check_runtime() if not ok then health.error( string.format( - '$VIMRUNTIME has files from an old installation (this can cause weird behavior):\n%s', + 'Found old files in $VIMRUNTIME (this can cause weird behavior):\n%s', bad_files_msg ), - { 'Delete $VIMRUNTIME (or uninstall Nvim), then reinstall Nvim.' } + { 'Delete the $VIMRUNTIME directory (or uninstall Nvim), then reinstall Nvim.' } ) end end |