aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-25 21:28:28 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-27 00:05:36 +0100
commit5f9d4d8afeb5dc3d5df4965c24cbb4c6e01694f7 (patch)
tree38d4f038774c077b61aeb32bea2b19f55ab14cb8 /runtime/lua/vim/diagnostic.lua
parent0f22ea400ce5319a1e74eda41505fd9cfb788e35 (diff)
downloadrneovim-5f9d4d8afeb5dc3d5df4965c24cbb4c6e01694f7.tar.gz
rneovim-5f9d4d8afeb5dc3d5df4965c24cbb4c6e01694f7.tar.bz2
rneovim-5f9d4d8afeb5dc3d5df4965c24cbb4c6e01694f7.zip
refactor: use vim.deprecate on all deprecated functions
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua16
1 files changed, 7 insertions, 9 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 6d2c212dfc..a82a61eeb7 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -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 = {}