diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2023-07-24 20:21:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 20:21:35 +0200 |
commit | 7668f89d5be6d463bf6ab0c2d3a0393e3ec26e7f (patch) | |
tree | 8f062518a564b0226c3884edcfaf1e78b66df541 /runtime/lua/vim/lsp.lua | |
parent | 966eb8e0b3be1b409e491d5cf1e32e82e806a134 (diff) | |
download | rneovim-7668f89d5be6d463bf6ab0c2d3a0393e3ec26e7f.tar.gz rneovim-7668f89d5be6d463bf6ab0c2d3a0393e3ec26e7f.tar.bz2 rneovim-7668f89d5be6d463bf6ab0c2d3a0393e3ec26e7f.zip |
fix(lsp): replace @private with @nodoc for public client functions (#24415)
* fix(lsp): replace @private with @nodoc for public client functions
To prevent lua-ls warnings in plugins which use the functions.
* fix(lsp): remove duplicate type annotations/class definitions
These annotations became duplicate with https://github.com/neovim/neovim/pull/23750
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 78b5f53723..1a1dc684ba 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1455,7 +1455,7 @@ function lsp.start_client(config) end) end - ---@private + ---@nodoc --- Sends a request to the server. --- --- This is a thin wrapper around {client.rpc.request} with some additional @@ -1559,7 +1559,7 @@ function lsp.start_client(config) return request_result end - ---@private + ---@nodoc --- Sends a notification to an LSP server. --- ---@param method string LSP method name. @@ -1590,7 +1590,7 @@ function lsp.start_client(config) return client_active end - ---@private + ---@nodoc --- Cancels a request with a given request id. --- ---@param id (integer) id of request to cancel @@ -1613,7 +1613,8 @@ function lsp.start_client(config) -- Track this so that we can escalate automatically if we've already tried a -- graceful shutdown local graceful_shutdown_failed = false - ---@private + + ---@nodoc --- Stops a client, optionally with force. --- ---By default, it will just ask the - server to shutdown without force. If @@ -2311,7 +2312,6 @@ function lsp.omnifunc(findstart, base) local startbyte - ---@private local function on_done() local mode = api.nvim_get_mode()['mode'] if mode == 'i' or mode == 'ic' then |