aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-08 18:11:39 -0800
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-01-08 18:16:58 -0800
commit59d22c52b86a356d4b7d0b0f5d29db79a27f5140 (patch)
treeba914ed7079aa6b6deee024060f1338b0c5807d6
parentMerge pull request #560 from mjlbach/readme_tweaks (diff)
downloadnvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar.gz
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar.bz2
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar.lz
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar.xz
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.tar.zst
nvim-lspconfig-59d22c52b86a356d4b7d0b0f5d29db79a27f5140.zip
readme: align with neovim core's documentation of on_attach
-rw-r--r--README.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/README.md b/README.md
index d19bac74..263b911a 100644
--- a/README.md
+++ b/README.md
@@ -260,10 +260,8 @@ lspconfig.SERVER.setup{config}
Example: `settings = { keyName = { subKey = 1 } }`
{on_attach}
- `function(client)` executed with the current buffer as the one the {client}
- is being attached-to. This is different from
- |vim.lsp.start_client()|'s on_attach parameter, which passes the {bufnr} as
- the second parameter instead. Useful for doing buffer-local setup.
+ `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