diff options
| author | Maria José Solano <majosolano99@gmail.com> | 2025-02-02 14:06:05 -0800 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-02-05 15:27:09 +0100 |
| commit | 38a52caec09eb15c9ff8b4db6f0cdb7e2a28eb98 (patch) | |
| tree | 9e3323fba01de8703e91b7a5f87f2e0a6fcd7bf6 /runtime/doc | |
| parent | 09f9f0a94625002f4c70efbdf858fe6918cbc9c6 (diff) | |
| download | rneovim-38a52caec09eb15c9ff8b4db6f0cdb7e2a28eb98.tar.gz rneovim-38a52caec09eb15c9ff8b4db6f0cdb7e2a28eb98.tar.bz2 rneovim-38a52caec09eb15c9ff8b4db6f0cdb7e2a28eb98.zip | |
feat(diagnostic): add `current_line` option for `virtual_text` handler
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/diagnostic.txt | 2 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index b7bdf2b446..5e1e04ce56 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -621,6 +621,8 @@ Lua module: vim.diagnostic *diagnostic-api* • {severity}? (`vim.diagnostic.SeverityFilter`) Only show virtual text for diagnostics matching the given severity |diagnostic-severity| + • {current_line}? (`boolean`) Only show diagnostics for the + current line. (default `false`) • {source}? (`boolean|"if_many"`) Include the diagnostic source in virtual text. Use `'if_many'` to only show sources if there is more than one diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index fda37852d6..12fac28db8 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -243,6 +243,8 @@ DIAGNOSTICS |vim.diagnostic.jump()|. • A "virtual_lines" diagnostic handler was added to render diagnostics using virtual lines below the respective code. +• The "virtual_text" diagnostic handler accepts a `current_line` option to + only show virtual text at the cursor's line. EDITOR |