diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-08-11 15:17:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 15:17:05 +0200 |
commit | 8b67f37798d90da957801be791da9425fb6fe741 (patch) | |
tree | d5f4eb727983241e911059321d62d8a16f2cb8d0 /runtime/doc/lsp.txt | |
parent | 6669fc94ae76399a619a350b5d2fc9421e575a81 (diff) | |
download | rneovim-8b67f37798d90da957801be791da9425fb6fe741.tar.gz rneovim-8b67f37798d90da957801be791da9425fb6fe741.tar.bz2 rneovim-8b67f37798d90da957801be791da9425fb6fe741.zip |
fix(lsp): fix some type annotations in lsp.rpc (#19714)
Diffstat (limited to 'runtime/doc/lsp.txt')
-rw-r--r-- | runtime/doc/lsp.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 62b1dceb10..21026f2ef8 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1947,9 +1947,10 @@ rpc_response_error({code}, {message}, {data}) Creates an RPC response object/table. Parameters: ~ - {code} RPC error code defined in `vim.lsp.protocol.ErrorCodes` - {message} (optional) arbitrary message to send to server - {data} (optional) arbitrary data to send to server + {code} (number) RPC error code defined in + `vim.lsp.protocol.ErrorCodes` + {message} (string|nil) arbitrary message to send to server + {data} any|nil arbitrary data to send to server *vim.lsp.rpc.start()* start({cmd}, {cmd_args}, {dispatchers}, {extra_spawn_params}) @@ -1961,13 +1962,13 @@ start({cmd}, {cmd_args}, {dispatchers}, {extra_spawn_params}) {cmd} (string) Command to start the LSP server. {cmd_args} (table) List of additional string arguments to pass to {cmd}. - {dispatchers} (table, optional) Dispatchers for LSP message - types. Valid dispatcher names are: + {dispatchers} (table|nil) Dispatchers for LSP message types. + Valid dispatcher names are: • `"notification"` • `"server_request"` • `"on_error"` • `"on_exit"` - {extra_spawn_params} (table, optional) Additional context for the LSP + {extra_spawn_params} (table|nil) Additional context for the LSP server process. May contain: • {cwd} (string) Working directory for the LSP server process |