health.vim: check has("debug")

This commit is contained in:
Justin M. Keyes 2019-08-04 12:27:44 +02:00
parent 5e6a08f2e6
commit e952b7fc2f

View File

@ -123,7 +123,7 @@ function! s:check_performance() abort
else
call health#report_info(buildtype)
call health#report_warn(
\ 'Non-optimized build-type. Nvim will be slower.',
\ 'Non-optimized '.(has('debug')?'(DEBUG) ':'').'build. Nvim will be slower.',
\ ['Install a different Nvim package, or rebuild with `CMAKE_BUILD_TYPE=RelWithDebInfo`.',
\ s:suggest_faq])
endif