refactor(lsp): merge vim.lsp.rpc.Client and vim.lsp.rpc.PublicClient

This commit is contained in:
Yi Ming
2026-03-29 20:37:13 +08:00
parent 92a667c07f
commit 4784f96e59
4 changed files with 85 additions and 94 deletions

View File

@@ -169,7 +169,7 @@ end
---
--- See `cmd` in [vim.lsp.ClientConfig].
--- See also `reuse_client` to dynamically decide (per-buffer) when `cmd` should be re-invoked.
--- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.PublicClient
--- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.Client
---
--- Filetypes the client will attach to, or `nil` for ALL filetypes. To match files by name,
--- pattern, or contents, you can define a custom filetype using |vim.filetype.add()|: