aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-06-20 10:17:17 -0700
committerGitHub <noreply@github.com>2021-06-20 10:17:17 -0700
commite112bbfc7ca3c019d1e937e63a48da5b6b586579 (patch)
tree76f05c495bb1af4d8f8fc016e0887718197fb87a
parent[docgen] Update CONFIG.md (diff)
downloadnvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar.gz
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar.bz2
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar.lz
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar.xz
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.tar.zst
nvim-lspconfig-e112bbfc7ca3c019d1e937e63a48da5b6b586579.zip
Update ADVANCED_README.md
-rw-r--r--ADVANCED_README.md17
1 files changed, 2 insertions, 15 deletions
diff --git a/ADVANCED_README.md b/ADVANCED_README.md
index d1c1e26a..dbb1b7e9 100644
--- a/ADVANCED_README.md
+++ b/ADVANCED_README.md
@@ -109,13 +109,13 @@ lspconfig.util.default_config = vim.tbl_extend(
## setup() function
-Only the following arguments can be passed to the setup function:
+setup() extends the arguments listed in `:help vim.lsp.start_client()`. **In addition to all of the arguments defined for start_client**, the following key/value pairs can be passed to the setup function:
```
lspconfig.SERVER.setup{config}
The `config` parameter has the same shape as that of
- |vim.lsp.start_client()|, with these additions and changes:
+ |vim.lsp.start_client()|, with these additions:
{root_dir}
Required for some servers, optional for others.
@@ -155,19 +155,6 @@ lspconfig.SERVER.setup{config}
Whether to automatically start a language server when a matching filetype is detected.
Defaults to true.
- {settings}
- Map with case-sensitive keys corresponding to `workspace/configuration`
- event responses.
- We also notify the server *once* on `initialize` with
- `workspace/didChangeConfiguration`.
- If you change the settings later on, you must emit the notification
- with `client.workspace_did_change_configuration({settings})`
- Example: `settings = { keyName = { subKey = 1 } }`
-
- {on_attach}
- `function(client, bufnr)` Runs the on_attach function from the client's
- config if it was defined. Useful for doing buffer-local setup.
-
{on_new_config}
`function(new_config, new_root_dir)` will be executed after a new configuration has been
created as a result of {root_dir} returning a unique value. You can use this