mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
refactor: use vim.deprecate on all deprecated functions
This commit is contained in:
@@ -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 = {}
|
||||
|
Reference in New Issue
Block a user