aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorChris Kipp <ckipp@pm.me>2023-01-12 15:51:19 +0100
committerGitHub <noreply@github.com>2023-01-12 15:51:19 +0100
commit443bbfd59e2818aeee72d2ed77af1cb24617e46f (patch)
treed89c963812603af67347f91def65e819e0d659f5 /runtime/doc
parenta5f4ba74472f965953f0d3e45704c93b95f9b9a7 (diff)
downloadrneovim-443bbfd59e2818aeee72d2ed77af1cb24617e46f.tar.gz
rneovim-443bbfd59e2818aeee72d2ed77af1cb24617e46f.tar.bz2
rneovim-443bbfd59e2818aeee72d2ed77af1cb24617e46f.zip
docs(lsp): fix type annotation on convert_input_to_markdown_lines (#21772)
This small changes just ensures that if you're using `convert_input_to_markdown_lines` without `contents` you don't get a warning (when using something like neodev) that there is an expected second param, since it can be nil.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 703c0b9d03..46cfa60529 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1508,8 +1508,8 @@ convert_input_to_markdown_lines({input}, {contents})
Parameters: ~
• {input} (`MarkedString` | `MarkedString[]` | `MarkupContent`)
- • {contents} (table, optional, default `{}`) List of strings to extend
- with converted lines
+ • {contents} (table|nil) List of strings to extend with converted
+ lines. Defaults to {}.
Return: ~
{contents}, extended with lines of converted markdown.