mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix: change deprecation presentation
Deprecation with vim.deprecate is currently too noisy. Show the following warning instead: [function] is deprecated. Run ":checkhealth vim.deprecated" for more information. The important part is that the full message needs to be short enough to fit in one line in order to not trigger the "Press ENTER or type command to continue" prompt. The full information and stack trace for the deprecated functions will be shown in the new healthcheck `vim.deprecated`.
This commit is contained in:
@ -1279,9 +1279,7 @@ M.handlers.signs = {
|
||||
vim.deprecate(
|
||||
'Defining diagnostic signs with :sign-define or sign_define()',
|
||||
'vim.diagnostic.config()',
|
||||
'0.12',
|
||||
nil,
|
||||
false -- suppress backtrace
|
||||
'0.12'
|
||||
)
|
||||
|
||||
if not opts.signs.text then
|
||||
|
Reference in New Issue
Block a user