Skip to content

v3.13.0

Choose a tag to compare

@jolars jolars released this 30 Sep 13:07
· 109 commits to main since this release
f2ee3ed

Highlights

You can now configure code style options per document and per code block:

code-style:
  line-width: 80
  indent-width: 2

Or, for a code block:

```{{r}}
#| code-style:
#|   line-width: 40
#|   indent-width: 2

result <- some_function(first_argument, second_argument)
```

Setting code block options will override the document-level options, which in turn override global options.

Currently only formatters Arity, Black, Prettier, and Ruff are supported, but eventually this will be extended to all formatters that support code style options.

At the moment, this also supports only line-width and indent-width, but more options will be added in the future.

Features

  • support code style metadata (88dcc1e)
  • lsp: complete reference link labels (035a8b3)

Bug Fixes

  • linter: resolve anchors in Quarto includes (160839c)
  • formatter: preserve leading math sign spacing (7f3d427)
  • deps: require salsa 0.28.5 (df19d46)

Performance Improvements

  • lsp: avoid temporary schema subtree allocations (5bf406d)

Dependencies

  • updated crates/panache-formatter to v0.26.0
  • updated crates/panache-parser to v0.31.0