diff --git a/README.md b/README.md index ba9178ec74..95a261c37e 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,8 @@ The two most common reasons a language server does not start or attach are: 2. Not triggering root detection. The language server will only start if it is opened in a directory, or child directory, containing a file which signals the *root* of the project. Most of the time, this is a `.git` folder, but each server defines the root config in the lua file. See [CONFIG.md](CONFIG.md) or the source for the list of root directories. +3. Misconfiguration. You must pass `on_attach` and `capabilities` for **each** `setup {}` if you want these to take effect. You must also **not call `setup {}` twice for the same server**. The second call to `setup {}` will overwrite the first. + :LspInfo provides a handy overview of your active and configured language servers. Note, that it will not report any configuration changes applied in `on_new_config`. Before reporting a bug, check your logs and the output of `:LspInfo`. Add the following to your init.vim to enable logging: