diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-11 10:59:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-11 10:59:19 -0700 |
| commit | a1dc30c90a8058ea8318fc048494db9f5588a562 (patch) | |
| tree | 712f71675ab1db410333d3e94156ebc0ff758697 | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar.gz nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar.bz2 nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar.lz nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar.xz nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.tar.zst nvim-lspconfig-a1dc30c90a8058ea8318fc048494db9f5588a562.zip | |
docs: make the role of on_attach more explicit
| -rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -70,6 +70,7 @@ For a full list of servers, see [CONFIG.md](CONFIG.md). This document contains i ## Keybindings and completion nvim-lspconfig does not map keybindings or enable completion by default. Manual, triggered completion can be provided by neovim's built-in omnifunc. For autocompletion, a general purpose [autocompletion plugin](https://github.com/neovim/nvim-lspconfig/wiki/Autocompletion) is required. The following example configuration provides suggested keymaps for the most commonly used language server functions, and manually triggered completion with omnifunc (\<c-x\>\<c-o\>). +Note: **you must pass the defined on_attach as an argument to every setup {} call** and **the keybindings in on_attach only take effect after the language server has started (attached to the current buffer)**. ```vim lua << EOF |
