aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-12 00:01:34 +0200
committerGitHub <noreply@github.com>2023-04-12 00:01:34 +0200
commit2b35de386ee8854e1012feb4a6cc53b099220677 (patch)
treeea684ebd977f05435a8af2e1ba665998095493ee
parentf4136c9d42f79c0f2fe3ce6fdc22b1544593692a (diff)
downloadrneovim-2b35de386ee8854e1012feb4a6cc53b099220677.tar.gz
rneovim-2b35de386ee8854e1012feb4a6cc53b099220677.tar.bz2
rneovim-2b35de386ee8854e1012feb4a6cc53b099220677.zip
refactor: remove :CheckHealth
Using :CheckHealth invokes an error, and many of the features from :checkhealth doesn't even work such as calling only a specific check. Users should use :checkhealth instead.
-rw-r--r--runtime/doc/pi_health.txt2
-rw-r--r--runtime/plugin/health.vim1
-rw-r--r--src/nvim/po/fi.po2
-rw-r--r--test/functional/core/startup_spec.lua2
4 files changed, 2 insertions, 5 deletions
diff --git a/runtime/doc/pi_health.txt b/runtime/doc/pi_health.txt
index 2ae93b098a..a0e06a7d37 100644
--- a/runtime/doc/pi_health.txt
+++ b/runtime/doc/pi_health.txt
@@ -21,7 +21,7 @@ Plugin authors are encouraged to write new healthchecks. |health-dev|
==============================================================================
Commands *health-commands*
- *:che* *:checkhealth* *:CheckHealth*
+ *:che* *:checkhealth*
:che[ckhealth] Run all healthchecks.
*E5009*
Nvim depends on |$VIMRUNTIME|, 'runtimepath' and 'packpath' to
diff --git a/runtime/plugin/health.vim b/runtime/plugin/health.vim
deleted file mode 100644
index 66ae8fb239..0000000000
--- a/runtime/plugin/health.vim
+++ /dev/null
@@ -1 +0,0 @@
-autocmd CmdUndefined CheckHealth checkhealth
diff --git a/src/nvim/po/fi.po b/src/nvim/po/fi.po
index c8db9a64b5..ab6acf685f 100644
--- a/src/nvim/po/fi.po
+++ b/src/nvim/po/fi.po
@@ -5540,7 +5540,7 @@ msgstr "tekijät Bram Moolenaar et al."
#~ msgstr "kirjoita :help iccf<Enter> lisätietoa varten "
#, fuzzy
-#~ msgid "type :CheckHealth<Enter> to optimize Nvim"
+#~ msgid "type :checkhealth<Enter> to optimize Nvim"
#~ msgstr "kirjoita :help iccf<Enter> lisätietoa varten "
msgid "type :q<Enter> to exit "
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index cc94623df3..2a9d3edb33 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -402,8 +402,6 @@ describe('startup', function()
local line1 = string.match(out, '^.-\n')
-- updatecount=0 means swapfile was disabled.
eq(" swapfile updatecount=0 shadafile=\n", line1)
- -- Standard plugins were loaded, but not user config.
- eq('health.vim', string.match(out, 'health.vim'))
eq(nil, string.match(out, 'init.vim'))
end
end)