refactor: use vim.deprecate on all deprecated functions

This commit is contained in:
dundargoc
2023-12-25 21:28:28 +01:00
committed by dundargoc
parent 0f22ea400c
commit 5f9d4d8afe
7 changed files with 36 additions and 20 deletions

View File

@@ -891,15 +891,13 @@ M.handlers.signs = {
local sign = vim.fn.sign_getdefined(name)[1]
if sign then
local severity = M.severity[v:upper()]
if vim.fn.has('nvim-0.11') == 1 then
vim.deprecate(
'Defining diagnostic signs with :sign-define or sign_define()',
'vim.diagnostic.config()',
'0.12',
nil,
false
)
end
vim.deprecate(
'Defining diagnostic signs with :sign-define or sign_define()',
'vim.diagnostic.config()',
'0.12',
nil,
false
)
if not opts.signs.text then
opts.signs.text = {}