Skip to content

Commit

Permalink
doc: added book entries for configuring the editor with lsp.preselect…
Browse files Browse the repository at this point in the history
… and completion-doc-preview
  • Loading branch information
lazytanuki committed Jun 7, 2022
1 parent c23699e commit f2a11bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ hidden = false
| `auto-format` | Enable automatic formatting on save. | `true` |
| `idle-timeout` | Time in milliseconds since last keypress before idle timers trigger. Used for autocompletion, set to 0 for instant. | `400` |
| `completion-trigger-len` | The min-length of word under cursor to trigger autocompletion | `2` |
| `completion-doc-preview` | Show the documentation of the first item in the completion menu | `false` |
| `auto-info` | Whether to display infoboxes | `true` |
| `true-color` | Set to `true` to override automatic detection of terminal truecolor support in the event of a false negative. | `false` |
| `rulers` | List of column positions at which to display the rulers. Can be overridden by language specific `rulers` in `languages.toml` file. | `[]` |

### `[editor.lsp]` Section

| Key | Description | Default |
| --- | ----------- | ------- |
| `display-messages` | Display LSP progress messages below statusline[^1] | `false` |
| Key | Description | Default |
| --- | ----------- | ------- |
| `display-messages` | Display LSP progress messages below statusline[^1] | `false` |
| `preselect` | Show the LSP server's preselected suggestions first | `true` |

[^1]: A progress spinner is always shown in the statusline beside the file path.

Expand Down

0 comments on commit f2a11bb

Please sign in to comment.