Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 6ca3a47

Browse files
authored
Add note and example about inlay_hints enabled
1 parent ce5d038 commit 6ca3a47

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ On cursor hover, get hints for current line:
5252
autocmd CursorHold,CursorHoldI *.rs :lua require'lsp_extensions'.inlay_hints{ only_current_line = true }
5353
```
5454

55+
By default only ChainingHint is enabled. This is due to Neovim not able to add virtual text injected into a line. To enable all hints:
56+
**Note:** Hints will overwrite if other hints using this. Only the last hint will be shown.
57+
58+
```vimscript
59+
:lua require('lsp_extensions').inlay_hints{ enabled = {"TypeHint", "ChainingHint", "ParameterHint"} }
60+
```
61+
5562
Available Options (Showing defaults):
5663

5764
```lua

0 commit comments

Comments
 (0)