From f61146349274e94929faaa4dce010a34c67c3639 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sun, 11 Jul 2021 11:03:14 -0700 Subject: Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index ba9178ec..95a261c3 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: -- cgit v1.2.3-70-g09d2