aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/diagnostic.txt5
-rw-r--r--runtime/doc/news.txt5
2 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt
index b7d5cb0b2c..32c9959f5a 100644
--- a/runtime/doc/diagnostic.txt
+++ b/runtime/doc/diagnostic.txt
@@ -389,8 +389,9 @@ Lua module: vim.diagnostic *diagnostic-api*
|nvim_win_get_cursor()|.
• {wrap}? (`boolean`, default: `true`) Whether to loop
around file or not. Similar to 'wrapscan'.
- • {severity} (`vim.diagnostic.Severity`) See
- |diagnostic-severity|.
+ • {severity}? (`vim.diagnostic.Severity`) See
+ |diagnostic-severity|. If `nil`, go to the
+ diagnostic with the highest severity.
• {float}? (`boolean|vim.diagnostic.Opts.Float`, default:
`true`) If `true`, call
|vim.diagnostic.open_float()| after moving. If a
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 537542ee46..44d5ea39bf 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -387,6 +387,11 @@ The following changes to existing APIs or features add new behavior.
• |vim.diagnostic.config()| now accepts a function for the virtual_text.prefix
option, which allows for rendering e.g., diagnostic severities differently.
+• |vim.diagnostic.goto_next()| and |vim.diagnostic.goto_prev()| jump to the
+ diagnostic with the highest severity when the "severity" option is
+ unspecified. To use the old behavior, use: >lua
+ vim.diagnostic.goto_next({ severity = { min = vim.diagnostic.severity.HINT } })
+
• Defaults:
• On Windows 'isfname' does not include ":". Drive letters are handled
correctly without it. (Use |gF| for filepaths suffixed with ":line:col").