diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-08 18:11:39 -0800 |
|---|---|---|
| committer | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-08 18:16:58 -0800 |
| commit | 59d22c52b86a356d4b7d0b0f5d29db79a27f5140 (patch) | |
| tree | ba914ed7079aa6b6deee024060f1338b0c5807d6 | |
| parent | Merge pull request #560 from mjlbach/readme_tweaks (diff) | |
| download | nvim-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.md | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |
