From b5070f060aa60b9a00312a013176df17058df310 Mon Sep 17 00:00:00 2001 From: Robin Lovelace Date: Mon, 29 Apr 2024 18:22:30 +0100 Subject: [PATCH] Update README.md For #664 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 62ca338f..3c149546 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,15 @@ options(languageserver.formatting_style = function(options) { }) ``` +You can use other style packages building on `styler`, e.g. as follows, which styles according to the [`styler.equals`](https://github.com/Robinlovelace/styler.equals) package: + +```r +options(languageserver.formatting_style = function(options) { + styler.equals::equals_style(scope = "indention", indent_by = options$tabSize) +}) +``` + + To disable assignment operator fix (replacing `=` with `<-`): ```r