aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-02-08 12:11:47 +0000
committerLewis Russell <me@lewisr.dev>2024-02-08 16:58:49 +0000
commit451bc50d40ee43a40285d16039deb83c9bf05ff6 (patch)
treebd4d076349d0213c31fc79615ab752e935397d6c /runtime/doc
parent5c36701228e166f8aa89983044404ff322fe481f (diff)
downloadrneovim-451bc50d40ee43a40285d16039deb83c9bf05ff6.tar.gz
rneovim-451bc50d40ee43a40285d16039deb83c9bf05ff6.tar.bz2
rneovim-451bc50d40ee43a40285d16039deb83c9bf05ff6.zip
feat(lsp): deprecate severity_limit
Problem: `vim.lsp.diagnostic.on_diagnostic` accepts an undocumented severity_limit option which is widely used. Solution: Deprecate it in favour of `{min = severity}` used in `vim.diagnostic`. Since this is undocumented, the schedule for removal is accelerated to 0.11.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index ad1b838578..dd3ef9cbc8 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1384,6 +1384,7 @@ on_diagnostic({_}, {result}, {ctx}, {config})
<
Parameters: ~
+ • {result} (`lsp.DocumentDiagnosticReport`)
• {ctx} (`lsp.HandlerContext`)
• {config} (`table`) Configuration table (see
|vim.diagnostic.config()|).