aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-30 19:06:32 +0100
committerGitHub <noreply@github.com>2023-01-30 19:06:32 +0100
commit27b81af19c498892f4b0444ad29b7be842f8e7b8 (patch)
treec17adda91d2b3896c0946c6f9ca7546dece5ab4a /runtime/lua
parent979b7b0c4950b19cf180758d98fec170834eeb66 (diff)
downloadrneovim-27b81af19c498892f4b0444ad29b7be842f8e7b8.tar.gz
rneovim-27b81af19c498892f4b0444ad29b7be842f8e7b8.tar.bz2
rneovim-27b81af19c498892f4b0444ad29b7be842f8e7b8.zip
refactor!: remove has("debug") (#22060)
This value can not be relied on as it doesn't work for multi-configuration generators. I don't think this undocumented option is used much, if at all, so I think we should remove it.
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/nvim/health.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua
index b76106f241..f11899434e 100644
--- a/runtime/lua/nvim/health.lua
+++ b/runtime/lua/nvim/health.lua
@@ -156,13 +156,10 @@ local function check_performance()
health.report_ok(buildtype)
else
health.report_info(buildtype)
- health.report_warn(
- 'Non-optimized ' .. (has('debug') and '(DEBUG) ' or '') .. 'build. Nvim will be slower.',
- {
- 'Install a different Nvim package, or rebuild with `CMAKE_BUILD_TYPE=RelWithDebInfo`.',
- suggest_faq,
- }
- )
+ health.report_warn('Non-optimized debug build. Nvim will be slower.', {
+ 'Install a different Nvim package, or rebuild with `CMAKE_BUILD_TYPE=RelWithDebInfo`.',
+ suggest_faq,
+ })
end
-- check for slow shell invocation