aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/news.txt3
-rw-r--r--runtime/lua/vim/lsp/diagnostic.lua8
2 files changed, 2 insertions, 9 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 9c3ae3706c..8c7e400042 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -525,7 +525,8 @@ REMOVED FEATURES *news-removed*
These deprecated features were removed.
-• N/A
+• option `severity_limit` for `vim.lsp.diagnostic` (use `min=severity`
+ instead |vim.diagnostic.severity|).
==============================================================================
DEPRECATIONS *news-deprecations*
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua
index 20c3882d23..f611a13c2f 100644
--- a/runtime/lua/vim/lsp/diagnostic.lua
+++ b/runtime/lua/vim/lsp/diagnostic.lua
@@ -200,13 +200,6 @@ function M.get_namespace(client_id, is_pull)
end
end
-local function convert_severity(opt)
- if type(opt) == 'table' and not opt.severity and opt.severity_limit then
- vim.deprecate('severity_limit', '{min = severity} See vim.diagnostic.severity', '0.11')
- opt.severity = { min = severity_lsp_to_vim(opt.severity_limit) }
- end
-end
-
--- @param uri string
--- @param client_id? integer
--- @param diagnostics lsp.Diagnostic[]
@@ -303,7 +296,6 @@ end
---@private
function M.get_line_diagnostics(bufnr, line_nr, opts, client_id)
vim.deprecate('vim.lsp.diagnostic.get_line_diagnostics', 'vim.diagnostic.get', '0.12')
- convert_severity(opts)
local diag_opts = {} --- @type vim.diagnostic.GetOpts
if opts and opts.severity then