Skip to content

Commit

Permalink
Add note about autocmd for plcose, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
natebosch committed May 20, 2017
1 parent 5beb21a commit ca86d8b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ moving the cursor.

### Diagnostics

Error, warnings, and hints reported by the server are highlighted in the buffer.
Errors, warnings, and hints reported by the server are highlighted in the buffer.
When the cursor is on a line with a diagnostic the message will be displayed. If
there are multiple diagnostics on a line the one closes to the cursor will be
there are multiple diagnostics on a line the one closest to the cursor will be
displayed.

Diagnostics are also reported in the location list for each window which has the
Expand All @@ -58,7 +58,12 @@ moves again the options will be provided using vim's built in completion.

Note: By default `completeopt` includes `preview` and completion items include
documentation in the preview window. Close the window after completion with
`<c-w><c-z>` or disable with `set completeopt-=preview`.
`<c-w><c-z>` or disable with `set completeopt-=preview`. To automatically close
the documentation window use the following:

```viml
autocmd CompleteDone * silent! pclose
```

### Jump to definition

Expand Down

0 comments on commit ca86d8b

Please sign in to comment.