diff options
author | dundargoc <gocdundar@gmail.com> | 2024-05-16 18:33:09 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-24 11:08:00 +0200 |
commit | d123202ae6ef3f046d5b6579c194dca82ddb8a8f (patch) | |
tree | dfb64b7bb09076a58962cb7c41f36f80c02fa992 /runtime/lua/vim/diagnostic.lua | |
parent | f864b68c5b0fe1482249167712cd16ff2b50ec45 (diff) | |
download | rneovim-d123202ae6ef3f046d5b6579c194dca82ddb8a8f.tar.gz rneovim-d123202ae6ef3f046d5b6579c194dca82ddb8a8f.tar.bz2 rneovim-d123202ae6ef3f046d5b6579c194dca82ddb8a8f.zip |
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`.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/diagnostic.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index b5146e5beb..348204abb7 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -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 |