Skip to content

Commit

Permalink
doc: update advanced topic injected docs to point to formatter options
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jan 6, 2024
1 parent ad347d7 commit 0e61fc8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doc/advanced_topics.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,4 @@ Sometimes you may have a file that contains small chunks of code in another lang

The way that conform supports this is via the `injected` formatter. If you run this formatter on a file, it will use treesitter to parse out the blocks in the file that have different languages and runs the formatters for that filetype (configured with `formatters_by_ft`). The formatters are run in parallel, one job for each language block.

This formatter is experimental; the behavior and configuration options are still subject to change. Below are the current options available to customize the behavior of the formatter.

```lua
-- Set this value to true to silence errors when formatting a block fails
require("conform.formatters.injected").options.ignore_errors = false
```
This formatter is experimental; the behavior and configuration options are still subject to change. The current list of configuration options can be found at [formatter options](formatter_options.md#injected)

0 comments on commit 0e61fc8

Please sign in to comment.