Skip to content

Commit f98c535

Browse files
committed
Add HeaderInsertion config
1 parent d934529 commit f98c535

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,16 @@ The default is `FullPlaceholders`.
394394
This option governs the completion of template names as well, where
395395
the delimiters are `<>`.
396396

397+
### HeaderInsertion
398+
{:.v21}
399+
400+
Add `#include` directives when accepting code completions. Config
401+
equivalent of the CLI option `--header-insertion`. Valid values are:
402+
- `IWYU`: Include what you use. Insert the owning header for top-level
403+
symbols, unless the header is already directly included or the
404+
symbol is forward-declared.
405+
- `Never`: Never insert headers.
406+
397407
## InlayHints
398408
{:.v14}
399409

0 commit comments

Comments
 (0)