docs(lsp): update example, optional parameters #31299

This commit is contained in:
Yi Ming
2024-11-29 00:08:27 +08:00
committed by GitHub
parent 864f25d6b0
commit 146b8300a1
3 changed files with 8 additions and 7 deletions

View File

@@ -487,7 +487,7 @@ end
--- ```lua
--- -- Never request typescript-language-server for formatting
--- vim.lsp.buf.format {
--- filter = function(client) return client.name ~= "tsserver" end
--- filter = function(client) return client.name ~= "ts_ls" end
--- }
--- ```
--- @field filter? fun(client: vim.lsp.Client): boolean?