Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'book/src/editor.md')
| -rw-r--r-- | book/src/editor.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/book/src/editor.md b/book/src/editor.md index b264201f..7f1de68b 100644 --- a/book/src/editor.md +++ b/book/src/editor.md @@ -19,6 +19,7 @@ - [`[editor.soft-wrap]` Section](#editorsoft-wrap-section) - [`[editor.smart-tab]` Section](#editorsmart-tab-section) - [`[editor.inline-diagnostics]` Section](#editorinline-diagnostics-section) +- [`[editor.word-completion]` Section](#editorword-completion-section) ### `[editor]` Section @@ -477,3 +478,21 @@ end-of-line-diagnostics = "hint" [editor.inline-diagnostics] cursor-line = "warning" # show warnings and errors on the cursorline inline ``` + +### `[editor.word-completion]` Section + +Options for controlling completion of words from open buffers. + +| Key | Description | Default | +| --- | --- | --- | +| `enable` | Whether word completion is enabled | `true` | +| `trigger-length` | Number of word characters to type before triggering completion | `7` | + +Example: + +```toml +[editor.word-completion] +enable = true +# Set the trigger length lower so that words are completed more often +trigger-length = 4 +``` |